Table1 (New Data, Purged Periodically)
Table2 (Archived Unique Records from Table1 not Purged)
I'm trying to write an Unmatched Append query to populate Table2 from Table1 with records that don't already exist in Table2
Query (Doesn't work)
SELECT Table1.Field1, Table1.Field2, Table1.Field3, Table1.Field4
FROM Table1 LEFT JOIN Table2 ON Table1.Field1 = Table2.Field1
WHERE (((Table2.Field1) Is Null));
I want records copied from Table1 to Table2 if the entire record (combination of all fields) is unique. The query won't copy any records if Field1 is not unique.
Here's an example:
Each character represents 1 field
Table1
1 2 4 7
2 3 7 2
1 3 9 1
Table2
1 2 4 7
3 2 7 1 *#
1 3 1 2 *
2 3 7 2
4 1 9 2 *#
2 2 1 2 *
* I want these records copied.
# These are the records the query copies.
Basically I'm trying to find Unmatches on the entire record, not the values of any individual fields.
Thanks
Table2 (Archived Unique Records from Table1 not Purged)
I'm trying to write an Unmatched Append query to populate Table2 from Table1 with records that don't already exist in Table2
Query (Doesn't work)
SELECT Table1.Field1, Table1.Field2, Table1.Field3, Table1.Field4
FROM Table1 LEFT JOIN Table2 ON Table1.Field1 = Table2.Field1
WHERE (((Table2.Field1) Is Null));
I want records copied from Table1 to Table2 if the entire record (combination of all fields) is unique. The query won't copy any records if Field1 is not unique.
Here's an example:
Each character represents 1 field
Table1
1 2 4 7
2 3 7 2
1 3 9 1
Table2
1 2 4 7
3 2 7 1 *#
1 3 1 2 *
2 3 7 2
4 1 9 2 *#
2 2 1 2 *
* I want these records copied.
# These are the records the query copies.
Basically I'm trying to find Unmatches on the entire record, not the values of any individual fields.
Thanks