Try adding a semi-colon to the end of the select statement in parentheses,
also you should include the field in the delete statement, it will delete
the entire row anyway. Here is some sample SQL doing a similar thing only
based on a query instead of a table(makes no difference).
DELETE Inventory.PartNumber
FROM Inventory
WHERE (((Inventory.PartNumber) In (Select Partnumber From Query2;)));
--
Jeffrey R. Bailey
"C L Humphreys" <cl*********@toofgib.moc> wrote in message
news:bk**********@ucsnew1.ncl.ac.uk...
Hi,
Should I be able to do the following delete in access 2002 -
'delete from table1 where table1.x in (select x from table2)'
I get a syntax error. I have also tried 'delete * from...'
Anyone help?
cheers,
Chris