Tick Box When Button Is Click

jamer03

Registered User.
Local time
Today, 19:40
Joined
Dec 17, 2009
Messages
11
Hello,

Does anybody know if, when a button is clicked on a form, you can make it tick a tick box inside the same form but in a sub form?

If you have any ideas it will be much appreciated.

Thanks,
Jamer
 
Me.sfrmName.Form!chkboxName = True
 
Thanks for the reply but where abouts do i put this?

Jamer.
 
- put the form in design view.
- select the button.
- view/properties.
- go to event tab.
- in the On Click event, select [Event Procedure]
- click the small box to the right (...)
- you should be in a code module for the form, and specifically in the On Click event procedure for the button.
- put the code where the cursor is (hopefully you haven't moved it).
- rename the items in red to match the names of your controls:
Me.sfrmName.Form!chkboxName = True
 
I did what you said but it says it cannot find the object "Me." :S Any idea?
 
OK its sorted now, but as well as this event happening I want a macro to run on this button at the same time, is this possible?

Jamer
 
add:
DoCmd.RunMacro "macroName"
 

Users who are viewing this thread

Back
Top Bottom