Make changes to data on Access form and keep original data in history table
Posted on 2013-01-30
I have a form (myFormA) with about 30 fields where the end users enter product specs.
I want to create another form (myFormEdits) with the same 30 fields but it will allow the end users to edit any of the 30 fields, but I want to keep the original value in a history table (myTableHistory- it has 5 fields: ProductNumber, Spec, OriginalValue, Date, UserID ).
How can I do this so if the end user decides to change 6 out of the 30, it will know to only insert the 6 original values into myTableHistory. I was thinking of possibly adding an "edit" button to all 30 and when the user clicks it, it will insert the original value into myTableHistory and update the main table with the new value, but it will be tedious to do this 30 times in code. Any better ideas?
Thank you in advance!