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

date update in form 1

Status
Not open for further replies.

Kindi

Programmer
Jan 31, 2001
54
GB
I have a date field in a form, and when a record is updated I wish the date field value to change to the date the record is updated. How do i do this?

Thanks
Kindi
 
In the form's BeforeUpdate event you should put a line of code that sends the current date to the text box in question. It would look like such:

Private Sub Form_BeforeUpdate ()

MyField = Now()

End Sub


Hope this helps.
lonniejohnson@kawvalley.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top