G
gmazza via AccessMonster.com
Hi there,
I have searched many of the audit trail posts and still have yet to see my
issue, so maybe someone could help.
I have an audit trail table that has the following records: audID, audType,
audUser, FieldName and NewValue.
I need to track it so if a user makes a change to a field, the name of the
field on the form goes into the FieldName field in the table, and the change
that was made goes into the NewValue field in the table.
Yes I know I will have 1 record for each field being updated which will
result in many records in my audit table for 1 record change, but this is
what is needed.
How can I go about getting the field name, and the updated value, only if it
was updated, and then written to the audit table?
It would act the same for an Insert, a record for each field in the table.
For a delete there would be 1 record, audType being 'Delete', FieldName would
be blank, and NewValue would say 'Record has been deleted'
Thanks in advance!
I have searched many of the audit trail posts and still have yet to see my
issue, so maybe someone could help.
I have an audit trail table that has the following records: audID, audType,
audUser, FieldName and NewValue.
I need to track it so if a user makes a change to a field, the name of the
field on the form goes into the FieldName field in the table, and the change
that was made goes into the NewValue field in the table.
Yes I know I will have 1 record for each field being updated which will
result in many records in my audit table for 1 record change, but this is
what is needed.
How can I go about getting the field name, and the updated value, only if it
was updated, and then written to the audit table?
It would act the same for an Insert, a record for each field in the table.
For a delete there would be 1 record, audType being 'Delete', FieldName would
be blank, and NewValue would say 'Record has been deleted'
Thanks in advance!