I have a form with a checkbox, The box has a label of Documentation Waiver. If the box is checked is there a way to grey out the rest of the form?? If the checkbox is left alone the form appears normal?
How about in the On Click event check to see if it's checked or not checked. If checked you set the enabled property of the other objects to false, if not checked then set them to true?
OK that sounds reasonable but how would I go about doing that. I am very new to Access. I know how to check the properties and see where it says ON CLICK but after that I am kind of Lost.
Ok, one slight correction, you should put it in the AfterUpdate event, not the onClick event.
Go to the properties of the checkbox, select the AfterUpdate Event and press the [...] to get to the Code Builder. When the code window opens it will have something like:
Private Sub Check0_AfterUpdate()
End Sub
in between the Sub and the End Sub you'll need something like this:
Code:
If Check0.Value Then
Text2.Enabled = False
Else
Text2.Enabled = True
End If
Where Check0 is the name of your Checkbox and Text2 is the name of the item to disable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.