form check box

tubar

Registered User.
Local time
Yesterday, 22:01
Joined
Jul 13, 2006
Messages
190
if check box 1 is true then i want to allow the user to select true or false in check box 2. if check box 1 is false the user cant select check box 2

how do i do this:rolleyes:
 
Use the AfterUpdate Event of CheckBox1

Code:
Private Sub Check0_AfterUpdate()
Me.Checkbox2 = False [COLOR="Green"]'Or True [/COLOR]
Me.Checkbox2.Enabled = Me.CheckBox1
End Sub

You can delete this line, if you don't need to set a default value for CheckBox2
Code:
Me.Checkbox2 = False [COLOR="Green"]'Or True[/COLOR]
 

Users who are viewing this thread

Back
Top Bottom