I'm totally new to SQL, but I need to remove record from one table where they have a corresponding entry in another table. There are two cells that identify the record in both tables, Forwarder and Certificate #.
The SQL code that I think should work is:
DELETE *
FROM tblAgedDebtors
WHERE 'Forwarder' in (SELECT DISTINCT 'Forwarder' FROM tblCancellations)
AND 'Certificate #' in (SELECT DISTINCT 'Certificate #' FROM tblCancellations);
Though Access tries to delete every record when running this, possibly because the code doesnt specify that the Forwarder and Certificate # should be in the same record? I don't know.
Other questions that have been asked do explore this topic, but not when searching for two columns in the same row.