how do i make a checkbox an option

oskar_diaz

Registered User.
Local time
Today, 00:04
Joined
Jul 28, 2003
Messages
18
How do i make it so that when a check box is checked other options will become unlocked. I want to have a check box and if that is selected other checkboxes to be able to be selected.

Thank you
 
Set the other check boxes.Enabled = False.

In the OnClick event of the main checkbox, check for it's value and then set all other checkboxes.Enabled = True.
 
Welcome to the forums oskar_diaz.

I'm not sure what you mean by "other options will become unlocked". Do you mean unlocking or making visible controls that weren't visible before?

To check the 2nd checkbox field if the 1st one is checked, I would place code like this in the AfterUpdate event of your first checkbox:
Me.chkTwo = Me.chkOne
That code will also uncheck the 2nd box if the first one is uncheced.

If you just want the 2nd to be checked if the 1st one is, but not to uncheck the 2nd if the 1st is unchecked, use this:
If Me.chkOne Then Me.chkTwo=True
 
Last edited:

Users who are viewing this thread

Back
Top Bottom