You will need to add two date/time fields to your table to hold the details
of when the record was created, and when the record was updated.
For the WhenCreated field, you can just set the Default Value property to:
=Now()
For the WhenUpdated field, you need to use the BeforeUpdate event of the
*form* to assign this value:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Not Me.NewRecord Then
Me.[WhenUpdated] = Now()
End If
End Sub
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Richard G Hunt said:
How do I add a date/time stampo top an Access form that automatically
updates
on input or modify? Online Help suggests an event or macro but gives no
details of how to do it.