Guys, I am trying to run a delete query that would identify records from an unmatched query and delete all these records from table CopyOfTblSVEPURCHASEORDERS. Below is what I have been trying without success. When I run this I receive the message of "The Specified Field '[PO No]' could refer to more than one table listed in the FROM clause of your SQL statement"
DELETE *
FROM CopyOfTblSVEPURCHASEORDERS
WHERE exists
(select 1
from CopyOfTblSVEPURCHASEORDERSWithoutMatchingSVEPurchaseOr
where [PO No] = CopyOfTblSVEPURCHASEORDERS.[PO No]);
Thanks for any help/advise.
DELETE *
FROM CopyOfTblSVEPURCHASEORDERS
WHERE exists
(select 1
from CopyOfTblSVEPURCHASEORDERSWithoutMatchingSVEPurchaseOr
where [PO No] = CopyOfTblSVEPURCHASEORDERS.[PO No]);
Thanks for any help/advise.