Question : Comparing Data between two tables

I'm using Access 2003 and will have to separate databases with the
exact same tables and table structures.

I need to be able to compare the table from the second database
against the same table in the first database.  I need to know if there
is a similar name in the table in the first db and then find out if
all the rest of the fields are the same.  If they aren't I need to
update the table in db1 with the values from db2.  If there isn't a
record with a similar name then I need to create a new record in db1.


I was just wondering what the best approach to do this would be?  Any
help would be appreciated.


Answer : Comparing Data between two tables

Can you use it for that many fields?  Yes

after you completed the query wizard, you open the query in design view and modify to set the fields you want to make comparison

like this

SELECT T1.Field1, T1.Field2, T1.Field3
FROM T1 LEFT JOIN T2 ON (T1.Field1=T2.Field1) AND (T1.Field2=T2.Field2) AND (T1.Field3=T2.Field3)
WHERE (((T2.Field2) Is Null) AND ((T2.Field3) Is Null) AND ((T2.Field1) Is Null));
Random Solutions  
 
programming4us programming4us