Date modified

Lilgreenfrog

New member
Local time
Today, 22:03
Joined
Aug 4, 2004
Messages
8
Can somebody tell me of a way to create a 'date modified' field that will update only when the record is actually changed, not whenever it's viewed?

Thanks
 
I'll assume you have a field called LastUpdated or something in your table.

In the form's BeforeUpdate() event, put:

Code:
Me.LastUpdated = Now

As the BeforeUpdate() event only triggers when the form is Dirty then only when changes are made to the record will the LastUpdated field be updated to the current time.
 
Ahh you're a star

Thanks :rolleyes:
 

Users who are viewing this thread

Back
Top Bottom