What is the best way to record the fields changed, user, and time.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best way to record the fields changed, user, and time for each
field that is modified. Is there a way to do it without creating a query &
macro for each field?
 
Hi Renae.

Big question. You need to do that in the AfterUpdate event of the form, when
you know that the changes have been made. But at that stage, the OldValue of
the controls is no longer available, so you need to record those in the
BeforeUpdate event of the form, so you can compare them.

There's an example of how to record inserts, edits, and deletions in:
Audit Trail - Log changes at the record level
at:
http://members.iinet.net.au/~allenbrowne/AppAudit.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top