John Spencer said:
Well, how do you match master table records to update table records? Is
there a field or fields that uniquely identify the records that match (a
primary key)between the two tables?
Generic SQL to show NEW records would look something like
SELECT Update.*
FROM Update LEFT JOIN Master
ON UPdate.MatchingField = Master.MatchingField
WHERE Master.MatchingField is Null
Generic SQL to records that have changed would be something like
SELECT Update.*
FROM Update as U INNER JOIN Master as M
ON U.MatchingField = M.MatchingField
WHERE U.Field1 <> M.Field1
OR U.Field2 <> M.Field2
OR ...
That gets more complicated if you have to deal with nulls. Then you
have to use the NZ function to force a value in the comparison or use
some thing like
WHERE (U.Field1 <> M.Field1 Or U.Field1 is Null and M.Field1 is not Null
or U.Field1 is not null and M.Field1 is Null)
OR (U.Field2 <> M.Field2 Or U.Field2 is Null and M.Field2 is not Null or
U.Field2 is not null and M.Field2 is Null)
Or alternate which is easier to enter, but may not be as fast to search
WHERE Nz(U.Field1,"") <> Nz(M.Field1,"")
'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
Thanks for the reply...
Let me provide further detail...
I manage the data for our organization of 960 members (960 records with 25
fields each)... Each Members records can change (address,city,state.etc..)
monthly...
New members can be added monthly, and members can be deleted monthly..
Since I receive this data monthly from an outside source, I must check the
monthly data for any changes to any current record, for any new records, and
for any current records that have been deleted....thus manually checking 960
records and 25 fields in each record...very time consuming...
Thus I hope there is a way to set it up so MS Access can check the master
table against the monthly update, and only return those current records that
have changed, those current records that have been deleted, and any new
records added...
Hopefully this better explains what is needed....
Thanks in advance for any solutions...