In my query, I join (LEFT JOIN) Table 1 to Table 2 (employee # and date) and
Table 1 to Table 3.
Table 3 is used to store the combo of date and employee #. I have an append
query to append the combo to Table 3 from Table 2 when I click on the button
(macro with mulitiple queries) to append the t&e transactions on the form.
Then my t&e append will check to make sure that the combo is not already in
Table 3. The combo is in all 3 tables.
The criteria that I have in the t&e append query are Is Not Null for both
date and employee # and Not In ([Table 3]) for the combo.
Based on my current set up, I don't see any duplicates would be created. I
append a lot of transactions every week. However, not all the transactions
that I append create duplicates, only a few. What I don't understand is
duplicates should not be created based on my current set up.
Thanks again for your help. Any more ideas?
Ofer Cohen said:
In this cases it shouldn't create a duplicate, if any thing it wont append
all the records.
In the SQL you use to append the records, do you have any criteria? mybe you
are not using any criteria as employee # to append the reords.
A use of another table in the select query beside table 1, might cause
duplicates, if the field you are using to link the two tables repeat it self
few times in the second table.