I am trying to append a table with records from another table. When I run the Append query the first time it works fine, however when I run it a second time it will duplicate the records. I created criteria in the query to prevent this, however it does not appear to be working. Any suggestions?
One more thing to note the MoveCheck is changed to -1 once the append query has run. That is my method of trying to prevent duplicates.
Thanks In Advance!
Code:
INSERT INTO Comments ( Comment, [RCR ID], [Contacts ID] ) SELECT [Qry Checklist].Comment, [Qry Checklist].RCR_ID, [Qry Comments].[Contacts ID] FROM [Qry Comments] INNER JOIN [Qry Checklist] ON [Qry Comments].[RCR ID] = [Qry Checklist].RCR_ID WHERE ((([Qry Checklist].MoveCheck)=0) AND (([Qry Checklist].Pass_Fail)=-1));
Thanks In Advance!
Comment