is there a way to tell when a record was last updated?
when a record was last updated
Collapse
X
-
Tags: None
-
There's no native way, in Access. You'll have to create a timestamp on your record.
- Creat a field in your underlying table
- Define it as a Date/Time Datatype
- Place a textbox on your form, using the new field in the underlying table as its Control Source
- Name the textbox UpdateTimeStamp.
For date and time, useCode:Private Sub Form_BeforeUpdate(Cancel As Integer) Me.UpdateTimeStamp = Date End Sub
If you have other code in the Form_BeforeUpda te event, such as validation code, make theCode:Private Sub Form_BeforeUpdate(Cancel As Integer) Me.UpdateTimeStamp = Now End Sub
Me.UpdateTimeSt amp = Now
line the last one in the event.
Linq ;0)>
Comment