Hi I am doing a test on finding out errors or changes done in a table.
The table is practically the same table, once imported into access as Before the load (B) and then as After the load(A)
another person in my team is updating one or more of the fields (thousands of records).
These changes are reflected on the copy of the table as A (after the load)
In the table I do have 218 Fields(columns).
Is it possible via a module to create a comparison between the tables B (before) and A (after) and find out all the records where the change has occurred?
sample code of the query
Code:
[SELECT A.ORDERID, A.VENDOR, IIf([B]![ORDER_ID]=[A]![ORDERID],"OK","CHANGED") AS 1R, IIf([B]![VENDOR]=[A]![VENDOR],"OK","CHANGED") AS 2R,IIf([B]![CRITICAL]=[A]![CRITICAL],"OK","CHANGED") AS 3R,
IIf([B]![PRICE]=[A]![PRICE],"OK","CHANGED") AS 4R
FROM A LEFT JOIN B ON (A.ORDERID = B.ORDERID) AND (A.VENDOR = B.VENDOR);
I just do not want to do the same manual sql for the rest of the 218 fields.
Any ideas on how to do that?
Thanks a lot
Webisti