How do I autoupdate a date on a form when a record changes?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I update a date in a text field automatically whenever a record is
changed?
 
Use the BeforeUpdate event procedure of the form, e.g.:

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.[MyDateField] = Now()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top