I have two forms that are viewed as a Datasheet to allow users to change data in the tables. I want to create a record in the history table each time a field in a record is changed. If a user changes five fields on the same record, I want there to be five different entries in the history table.
The [History] table has the following fields:
Hist_ID
Hist_Material_Code (primary key of table being changed)
Hist_UserID
Hist_Date
Hist_Time
Hist_Old_Value
Hist_New_Value
Hist_Field
The thing I can't figure out is how to capture the name of the field that is being changed. Capturing the new value is pretty straightforward, but I’m not sure which event should I use to populate a variable with the Old value? TIA
Brian
The [History] table has the following fields:
Hist_ID
Hist_Material_Code (primary key of table being changed)
Hist_UserID
Hist_Date
Hist_Time
Hist_Old_Value
Hist_New_Value
Hist_Field
The thing I can't figure out is how to capture the name of the field that is being changed. Capturing the new value is pretty straightforward, but I’m not sure which event should I use to populate a variable with the Old value? TIA
Brian