Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Record Amended

Status
Not open for further replies.

Betsvigi9

IS-IT--Management
May 31, 2001
46
GB
Does anyone know how I can automatically change the date/time in a field to todays date each time it is amended. i.e. so that it shows the last date that the record was amended.

Thanks
 
You can do this at the form level but not the table level. The version of Access you have will determine the best way to handle this. For A97 use the following: In the BeforeUpdate event property of the form use the following(substitute your controlname for the placeholder given):

...
If Me.Dirty Then
Me.DateFieldControlName = Now()
End If
...

For A2k use: In the On Dirty property of the form use the following:

...
Me.DateFieldControlName = Now()
...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top