In the form's Before Update you can use this code:
If me.dirty then
Updated=Now()
endif
Updated is the field in my recordsource that has the date and time an update was accomplished on the current record. If any changes are made to a record the Dirty property of the form becomes true. John Ruff - The Eternal Optimist
It worked fine on one of my forms, but ot doesn't work for another which has a sub form combo list (which you can open the form with if you selelect a particular record
Code is like so;
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.Dirty Then
last_updated = Now()
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.