P
Paul
I need to append new records on a daily basis from another database to a
linking table that connects a project table (tblProject) with a contact
table (tblContact). The Primary Key of the linking table
(tblProjectContact) consists of two fields - ProjectID and ContactID. I'm
trying to build an append query that appends all records from the source
table that don't already exist in the target table. That is, I need to
append all records from the source table where the combination of ProjectID
and ContactID don't already exist in tblProjectContact.
I would know what to do if there was only one field to check - you creater
an outer join to the target table in the query grid, and set the criteria of
the field in the target table to "Is Null." I'm expect that you can do
something similar with the two fields, but I'm not sure what would work.
Do you create an outer join pointing to the two fields in the target table,
and then define some combination of AND and OR in the Criteria Grid, and if
so, what would the criteria expression(s) look like?
Thanks in advance,
Paul
linking table that connects a project table (tblProject) with a contact
table (tblContact). The Primary Key of the linking table
(tblProjectContact) consists of two fields - ProjectID and ContactID. I'm
trying to build an append query that appends all records from the source
table that don't already exist in the target table. That is, I need to
append all records from the source table where the combination of ProjectID
and ContactID don't already exist in tblProjectContact.
I would know what to do if there was only one field to check - you creater
an outer join to the target table in the query grid, and set the criteria of
the field in the target table to "Is Null." I'm expect that you can do
something similar with the two fields, but I'm not sure what would work.
Do you create an outer join pointing to the two fields in the target table,
and then define some combination of AND and OR in the Criteria Grid, and if
so, what would the criteria expression(s) look like?
Thanks in advance,
Paul