PDA

View Full Version : Check Box Value To Populate Textbox Value



mattster1010
06-24-2008, 08:07 AM
Afternoon All,

I need some help with the above. I have a check box on a form (Checkbox01) that when ticked I want to populate the contents of textbox10 with 09:00.

How would I achieve this?

Regards,

Mattster

CreganTur
06-24-2008, 08:16 AM
It's easy- first make sure you've given your checkboxes and textboxes unique names- it's never a good idea to use the default names.

-In design view select your checkbox and choose the After Update event.

-In the code window, you'll enter something like the following:

If Me.chkBox = True Then '<<<If the check box is checked
Me.txtTimeBox = Time 'puts current time into textbox
End If