Logging data and time when box is ticked

S

Spencer Hazell

I have two fields. One is for a tick box; the other i would like to show the
time that the tick box has been ticked, so it enables me to log the time when
the data type is true... is this possible?

Thanks for your support
 
D

Douglas J. Steele

In the AfterUpdate event of the checkbox, put code that confirms that the
checkbox has been checked, and then put the time if it has:

Private Sub MyCheckBox_AfterUpdate

If Me.MyCheckBox Then
Me.MyTextBox = Now()
Else
Me.MyTextBox = vbNullString
End If

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

Similar Threads


Top