D
Dean
I have a database that tracks personnel activity for various tasks.
The main table of the database is tblActivity and it has only 8
fields, 1 being the Autonumber ID. TblActivity is populated by
importing time record entries exported to Excel from our accounting
software. Time record data is exported from the accounting software
into Excel using date range criteria. There is no guarantee that the
data exported to Excel from the accounting software is not duplicated,
in whole or in part, in tblActivity. Currently, the imported data is
temporarily stored in tblTemp until it can be validated for accuracy.
Both tables have the same structure.
I'd like to be able to compare the contents of tblTemp to tblActivity
and copy only unique records from tblTemp to tblActivity. There are 2
scenarios as I see it. The first is when the database is void of data
and Excel data is imported into tblTemp. TblTemp is then compared to
tblActivity (which is empty) and all records are appended to
tblActivity. The second scenario exists for all remaining imports in
which data exists in tblActivity, the imported data in tblTemp is
compared to that data, and only non-duplicated records are imported.
I've tried this with a Union query, Counting Duplicates, & an Append
query using a date range criteria and that works (sort of the Union
query bonks out in code due to the parameters). But I'd like to
eliminate the criteria and just look at each record and append new
data.
Thanks for your help!
Dean
The main table of the database is tblActivity and it has only 8
fields, 1 being the Autonumber ID. TblActivity is populated by
importing time record entries exported to Excel from our accounting
software. Time record data is exported from the accounting software
into Excel using date range criteria. There is no guarantee that the
data exported to Excel from the accounting software is not duplicated,
in whole or in part, in tblActivity. Currently, the imported data is
temporarily stored in tblTemp until it can be validated for accuracy.
Both tables have the same structure.
I'd like to be able to compare the contents of tblTemp to tblActivity
and copy only unique records from tblTemp to tblActivity. There are 2
scenarios as I see it. The first is when the database is void of data
and Excel data is imported into tblTemp. TblTemp is then compared to
tblActivity (which is empty) and all records are appended to
tblActivity. The second scenario exists for all remaining imports in
which data exists in tblActivity, the imported data in tblTemp is
compared to that data, and only non-duplicated records are imported.
I've tried this with a Union query, Counting Duplicates, & an Append
query using a date range criteria and that works (sort of the Union
query bonks out in code due to the parameters). But I'd like to
eliminate the criteria and just look at each record and append new
data.
Thanks for your help!
Dean