Hi everyone,
I need to compare two tables in different access databases. one being the master and the other being a local table.
the master can have hundreds of records and the local have only a few. I need to compare the local to the master and display the ones that are the same and also display the ones that do not exist for the purpose of updating and adding to the master table.
database 1 = local_groups
database 2 = master_groups
primary key in both tables = gr_local_id
Example:
master_groups
1,2,3,4,5
local_groups
1,2,3,4,5,6
OUTPUT
update master_groups 1,2,3,4,5
insert master_groups 6
hope someone can help
Thanks
I need to compare two tables in different access databases. one being the master and the other being a local table.
the master can have hundreds of records and the local have only a few. I need to compare the local to the master and display the ones that are the same and also display the ones that do not exist for the purpose of updating and adding to the master table.
database 1 = local_groups
database 2 = master_groups
primary key in both tables = gr_local_id
Example:
master_groups
1,2,3,4,5
local_groups
1,2,3,4,5,6
OUTPUT
update master_groups 1,2,3,4,5
insert master_groups 6
hope someone can help
Thanks