Using a Button to activate a Check Box

gunny3000

Registered User.
Local time
Today, 18:39
Joined
Nov 3, 2010
Messages
31
Hi,

I'm terrible now at VB... I think I've lost my marbles getting old!

I have tried the following to "activate" a Check Box using a Button...


Private Sub Command270_Click()

Me.Print_Mark.Value = True

End Sub


I need help please.
 
If you mean by "Activate" to enable then you want:
Me.Print_Mark.Enabled = True
 
thanks but I must mean 'checked'
 
In that case I do not see why what you had didn't work. Did you spell the name of the control correctly? After you typed in the period "." did intellisense pop up and show you your choices?
 
The check box is on the same form as the button and not on a sub-form?
 
RG, Yes, the auto intellisense pop-up comes up with my selection as a choice.

I also like to leave the uppercases off on purpose and watch them change when i press enter...

John, Yes, the Command Button and CheckBox are on the same Form.



this is a strange one!
 
I would have just settled for;
Code:
Me.Print_Mark = True
But I've just check in my sandbox DB and
Code:
Me.Print_Mark.Value = True
Works equally as well :confused:
 
Is there a global setting in Access 2007 I should know about?
 
Hi, I don't have a lot of code, but, I have all the Form and Report standard Command Buttons that I created from the Wizard. They all work fine to be fair.
 
RG, I have to admit that I have never done this and don't know how... any pointers? (you're dealing with a novice by the way)
 
Excellent Gunny! Thanks for posting back with your success.
 

Users who are viewing this thread

Back
Top Bottom