Auto update a date field when a checkbox is ticked

B

BruceM via AccessMonster.com

If you mean when the check box receives a check (rather than when it is
cleared), in the check box After Update event:

If Me.CheckBoxName = True Then
Me.SomeField = Now()
End If

If you want the time/date to be updated whenever the check box value changes,
leave out the If and End If lines.

If you want the date only, use Date() rather than Now(). Actually, Date()
will store the time, but it will always be midnight. This could make a
difference in sorting under some circumstances.
 

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