Auto Date Field

  • Thread starter Thread starter Rob B.
  • Start date Start date
R

Rob B.

Colleagues,

Is there a way to have a date field which populates itself with the
current date whenever the record is created or updated?

Thank you.

Rob
 
Rob,

You can set the Default Value property of the field to:
Date()
.... in order for this to happen when a new record is created.

To change this when the record is updated, probably need to use a VBA
procedure on the Before Update event of the form where the data is
edited. Like this:
Me.YourDateField = Date
 

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