M
Matt B. via AccessMonster.com
I’m trying to build a query that will compare SSN from table-1 to table-2. If
table-2 does not have the SSN’s that are on table-1, then they are NEW SSN’s
records to be added to table2.
1. How do I write a query to check for these NEW SSN’s?
2. How do I write a query that will count the New SSN’s found and list the
count in a msgbox popup?
Here's the query I have now...... not sure if it is correct and it doesn't
display or count the number of NEW SSN records.
SELECT tbl1.SSN, tbl2.SSN
FROM tbl1 LEFT JOIN tbl2 ON tbl1.SSN = tbl2.SSN
WHERE (((tbl2.SSN) Is Null));
Thanks,
Matt B.
table-2 does not have the SSN’s that are on table-1, then they are NEW SSN’s
records to be added to table2.
1. How do I write a query to check for these NEW SSN’s?
2. How do I write a query that will count the New SSN’s found and list the
count in a msgbox popup?
Here's the query I have now...... not sure if it is correct and it doesn't
display or count the number of NEW SSN records.
SELECT tbl1.SSN, tbl2.SSN
FROM tbl1 LEFT JOIN tbl2 ON tbl1.SSN = tbl2.SSN
WHERE (((tbl2.SSN) Is Null));
Thanks,
Matt B.