On Wed, 11 Feb 2009 19:32:02 -0800, Stephen sjw_ost
<(E-Mail Removed)> wrote:
>So, DB2 has IDs that are already in DB1, just without all of the details of
>DB1. How can I append only the records from DB2 to DB1 that are NOT already
>in DB1?
Use an "Unmatched Query" as an Append query:
INSERT INTO DB1(field, field, field, field)
SELECT field, field, field, field
FROM DB2 LEFT JOIN DB1
ON DB1.ID = DB2.ID
WHERE DB1.ID IS NULL;
Use your actual fieldnames of course.
Try it first without the first line (the INSERT INTO) to make sure it is
selecting the right records, and back up your database before running the
append!
--
John W. Vinson [MVP]
|