A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Could not delete from specified table" Error



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2006, 04:58 PM posted to microsoft.public.access.queries
Eric @ CMN, Evansville
external usenet poster
 
Posts: 1
Default "Could not delete from specified table" Error

When attempting to run the following query I got the "Could not delete from
specified table" Error. Any ideas why ?

DELETE Raw.*
FROM Raw INNER JOIN [raw data 2b deleted] ON (Raw.ATTR = [raw data 2b
deleted].MinOfATTR) AND (Raw.[Ticket Number] = [raw data 2b deleted].[Ticket
Number]);
  #2  
Old August 16th, 2006, 05:11 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default "Could not delete from specified table" Error

Try something like this:

DELETE FROM Raw
WHERE EXISTS
(SELECT MinOfATTR
FROM [raw data 2b deleted]
WHERE (Raw.ATTR = [raw data 2b deleted].MinOfATTR)
AND (Raw.[Ticket Number] = [raw data 2b deleted].[Ticket Number]));

If subqueries are new, see:
How to Create and Use Subqueries
at:
http://support.microsoft.com/?id=209066

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Eric @ CMN, Evansville" wrote
in message
...
When attempting to run the following query I got the "Could not delete
from
specified table" Error. Any ideas why ?

DELETE Raw.*
FROM Raw INNER JOIN [raw data 2b deleted] ON (Raw.ATTR = [raw data 2b
deleted].MinOfATTR) AND (Raw.[Ticket Number] = [raw data 2b
deleted].[Ticket
Number]);



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.