SQL Query trouble in MS Access 2003

unixkid

New member
Local time
Today, 13:37
Joined
Dec 14, 2010
Messages
7
Hi,

Im writing a query which will delete the rows of one table where its contents in two of it fields matches two contents of another tables fields. The code I have thus far is shown below:

Code:
DELETE *
FROM TABLE1
WHERE DocName= (SELECT DocName FROM TABLE2) AND GroupName = (SELECT GroupName FROM TABLE2);

It just doesn't do anything! I changed the DELETE to a SELECT to see if anything was selected and that didn't even work! And yes I am 100% the data was present in both tables to meet the criteria stated!

All help would be much appreciated,

Regards,

unixkid
 

Users who are viewing this thread

Back
Top Bottom