capture date/time when data modified

joyaccess1

Registered User.
Local time
Today, 05:03
Joined
Jan 21, 2008
Messages
32
Hi,
I have a column called "lastModifiedDate" in a table, i would need the form to automatically capture the date and time when any of the data elements are modified in the form, also i don't want the user to modify this column in the form, is this possible ?. if yes, then how can i achieve this ?

Thanks for any help
Joy
 
Set the text box in the form to Enable = False and Locked = True then nobody can edit it. In the Form's Before Update event (after any code that might cancel the update), put

Me.LastModifiedDate = Now
 
Thanks bob
 
Glad we could help - and Welcome to Access World Forums, by the way. :)
 

Users who are viewing this thread

Back
Top Bottom