Hi
Can some one help me
What i want to do is when i click on a check box in a record it puts the
current date and time in a text box or feild can this be done
Thanks
Greg
Yes, but I'd suggest skipping a step; you can put in some simple code
to let the user just doubleclick a textbox and store the current
date/time.
With the checkbox, put code in the checkbox's AfterUpdate event:
Private Sub chkMyCheckbox_AfterUpdate()
If Me!chkMyCheckbox = True Then ' leave this out if you always
' want to update the date field, leave it in to set the date
' only when the user sets the checkbox to True
Me!txtDateTimeField = Now()
End If ' leave this out too if you leave out the If
End Sub
To doubleclick, use txtDateTimeField's DoubleClick event and just set
Me!txtDateTimeField to Now().