Delete Query deleting more records than Subquery Returns

Pisteuo

Registered User.
Local time
Yesterday, 21:53
Joined
Jul 12, 2009
Messages
72
The following Delete Query is deleting all records, but I need it to delete only records returned by the subquery.

The subquery correctly returns records when I test it without the Delete operation. Could I be implementing the Delete Query incorrectly?

DELETE tblCheck.fldPrimary
FROM tblCheck
WHERE EXISTS (SELECT tblCheck.fldPrimary, tblCheck.fldPkg, tblCheck.fldAuditDate
FROM tblCheck INNER JOIN tblImportCheck ON (tblCheck.fldPkg=tblImportCheck.fldPkg AND tblCheck.fldAuditDate=tblImportCheck.fldAuditDate));

Thank you.
 

Users who are viewing this thread

Back
Top Bottom