Fill with current time on check

roccoau

Registered User.
Local time
Tomorrow, 06:06
Joined
Sep 1, 2006
Messages
56
Hi,
I would like to insert the currrent time in a feild on my form once a checkbox is ticked.
Can anyone please help me with this.

Tks Rgds
Roc
 
targetfield = now

'format the field as a time type to suit yourself
 
thanks Gemma works great
 
You can also do a quick OnClick vba code to do this as well.

If chkbox.value = true then
textbox.value = date() 'or whatever time function you need to use like Now() or etc.
else
textbox.value = "" 'to reset the time if you unclick
end if
 

Users who are viewing this thread

Back
Top Bottom