I am trying to find records in table A (tblMain) that dont match records in table B (tblAR)
I am using the Unmatching Query Wizard in Access to try and find records that dont match by Surname but I also want it to find records that dont match by DateOfBirth aswell. Here is the query:
SELECT tblMain.ID, tblMain.AppDate, tblMain.SURNAME, tblMain.CustDOB
FROM tblMain LEFT JOIN tblAR ON tblMain.SURNAME= tblAR.SURNAME
WHERE (((tblAR.SURNAME) Is Null));
Basically, I want the query to return records where " John born on 01/01/1950 " was not found in tblAR.
I've tried:
SELECT tblMain.ID, tblMain.AppDate, tblMain.SURNAME, tblMain.CustDOB
FROM tblMain LEFT JOIN tblAR ON (tblMain.SURNAME= tblAR.SURNAME) and (tblMain.CustDOB = tblAR.CustDOB)
WHERE (((tblAR.SURNAME AND tblAR.CustDOB) Is Null));
This does't return the desired results.
What am I doing wrong?
I am using the Unmatching Query Wizard in Access to try and find records that dont match by Surname but I also want it to find records that dont match by DateOfBirth aswell. Here is the query:
SELECT tblMain.ID, tblMain.AppDate, tblMain.SURNAME, tblMain.CustDOB
FROM tblMain LEFT JOIN tblAR ON tblMain.SURNAME= tblAR.SURNAME
WHERE (((tblAR.SURNAME) Is Null));
Basically, I want the query to return records where " John born on 01/01/1950 " was not found in tblAR.
I've tried:
SELECT tblMain.ID, tblMain.AppDate, tblMain.SURNAME, tblMain.CustDOB
FROM tblMain LEFT JOIN tblAR ON (tblMain.SURNAME= tblAR.SURNAME) and (tblMain.CustDOB = tblAR.CustDOB)
WHERE (((tblAR.SURNAME AND tblAR.CustDOB) Is Null));
This does't return the desired results.
What am I doing wrong?