I need code or help getting started with code that will
compare two tables looking for any changes in fields, the two
tables have the same fields, one table is called hist and another is
called changes, consider my two tables have 3 fields name A, B and C. While A is like the Id of the records A can not be a key field. So if there is a record in field A in the table change that is not in hist then I need to add those records to hist. now if there
are any differance in fields B or C from change table compared with hist tables then I need to add those records to the hist tables.
While I am asking for help using an example with 3 fields I have over 10 fields or otherwise I could make all the fields key fields and use an append query. The other problem I am running into
is that my fields have nulls or I might have used the unmatch query. These two tables need to be compare several times a year.
can someone help me with this code?
Thanks in advance
compare two tables looking for any changes in fields, the two
tables have the same fields, one table is called hist and another is
called changes, consider my two tables have 3 fields name A, B and C. While A is like the Id of the records A can not be a key field. So if there is a record in field A in the table change that is not in hist then I need to add those records to hist. now if there
are any differance in fields B or C from change table compared with hist tables then I need to add those records to the hist tables.
While I am asking for help using an example with 3 fields I have over 10 fields or otherwise I could make all the fields key fields and use an append query. The other problem I am running into
is that my fields have nulls or I might have used the unmatch query. These two tables need to be compare several times a year.
can someone help me with this code?
Thanks in advance