Date of Change

S

Stig

Hi
Can I add a field to a table that shows when the record was last modified?
Thanks once again for all the help kind people have been giving on these
newsgroups.
Dave
 
D

Douglas J. Steele

Not unless you're using a form to update your data. If you are, put logic in
the form's BeforeUpdate event to set the LastModified date to Now.
 
R

Rick Brandt

Stig said:
Hi
Can I add a field to a table that shows when the record was last
modified? Thanks once again for all the help kind people have been
giving on these newsgroups.
Dave

Add the field [RevisedOn] (for example) to the table and then in the form
used for editing use the BeforeUpdate event...

Me.RevisedOn = Now()

ALL edits must be done with a form that uses this code. You cannot enforce
this when editing the table directly.
 

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

Top