How do I setup a Last_Update field on a form?

G

Guest

Any time I change any field on my form I'd like a Last_Update field to be
populated with the current date and time before moving to the next record or
after a click a SAVE RECORD button I have on the form.
 
R

Rick Brandt

GregsDragon said:
Any time I change any field on my form I'd like a Last_Update field to be
populated with the current date and time before moving to the next record or
after a click a SAVE RECORD button I have on the form.

In the BeforeUpdate event for the form...

Me.Last_Update = Date()
or
Me.Last_Update = Now()

(depending on whether you want just the date or the date and time)
 

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

Top