Question : How to select records from tblA that do not exist in tblB ?

I am developing an Access application that uses Access as the front end and SQL Server as the back end database.

I have one table named tblA with a key field AccountNumber.
I have another table named tblB with a key field named Branch.

The fields AccountNumber and Branch have the same values in both tables for some records.

Table tblA has records that exist in table tblB as well as records that don't exist in table tblB.
How would I find those records that exclusively exist in tblA (that do not exist in tblB) ?

Answer : How to select records from tblA that do not exist in tblB ?

Use the Unmatched query wizard, or this SQL

SELECT tbla.*
FROM tblA LEFT JOIN tblB on AccountNumber = Branch
WHERE Branch is NULL
Random Solutions  
 
programming4us programming4us