Changing Checkbox status to active

  • Thread starter Thread starter Chip
  • Start date Start date
C

Chip

Howdy from Oklahoma!!!

I am just learning ACCESS and very, very new to VB and I cannot figure this
one out...

I have a form that has different objects on it, combo boxes, text boxes,
Checkboxes and such. What i need to do is have the checkboxes be inactive
until they press a button on the form to make them active. I always want
the user to see the checkboxes but "greyed out" when inactive.

This is probably very simple, i just cannot seem to figure out what i need
to do!!

As always, THANKS IN ADVANCE!!!

-Chip-
 
A grayed out checkbox has a value of Null. To reset one back to gray, set
its value to Null:

Me!Check0 = Null
 
Douglas said:
A grayed out checkbox has a value of Null. To reset one back to gray, set
its value to Null:

Me!Check0 = Null


I would think that should be called a grayed in chek box ;-)

The way I read Chip's question, he wants to disable the
check box. If so, the code in the button's Click event
would be something like:

Me.checkboxname.Enabled = True

Not clear what else the form is doing, but it's common to
disable the controls in the form's Current event:

Me.checkboxname.Enabled = False

But, there's got to be more going on than just this because
somewhere, somehow, something has to remember that the
button was clicked and the check box was enabled in which
case the current event should not disable it again.
 
Marshall Barton said:
I would think that should be called a grayed in chek box ;-)

The way I read Chip's question, he wants to disable the
check box. If so, the code in the button's Click event
would be something like:

Me.checkboxname.Enabled = True

Not clear what else the form is doing, but it's common to
disable the controls in the form's Current event:

Me.checkboxname.Enabled = False

You could be right, Marsh.
 
Back
Top