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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Store Record Upddate Date and Time

Status
Not open for further replies.

rockman

MIS
Jul 9, 1999
3
0
0
US
My access database automatically opens to a user-input form that populates a table. How can access populate a new or edited record with the date and time the user updates the record using the form?
 
In the form's BeforeUpdate event you should put a line of code that sends the current date and time to a text box. I am assuming you have a field in the record for this date. It would look like such:

Private Sub Form_BeforeUpdate ()

MyField = Now()

End Sub

Be sure that MyField is formated to store date and time in the format property of the field.

Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top