G
Guest
I was looking to gray out other check boxes when another check box is chosen
and found the mmessage below. My problem is I am haveing a real tough time
making this work!! I am new to writing code and adding controls to forms and
would greatly appreciate anyone who can further explain the to a brick like
me!! Thanks!
Myron
First, set the Enabled property of all the check boxes (except the
general one) to No.
Then code the AfterUpdate event of the first check box:
Me![CheckBox2].enabled = Me![CheckBox1]
Me![CheckBox3].enabled = Me![CheckBox1]
Me![CheckBox4].enabled = Me![CheckBox1]
Place the same code in the Form's Current event.
and found the mmessage below. My problem is I am haveing a real tough time
making this work!! I am new to writing code and adding controls to forms and
would greatly appreciate anyone who can further explain the to a brick like
me!! Thanks!
Myron
I have several checkboxes on a Form. The first checkbox is a general yes/no
choice. If the answer is "no" on this checkbox, I would like all the other
checkboxes to be grayed-out. If the answer is "yes", then the other detailed
checkboxes would be black and allow for further yes/no responses.
I hope this is clear. Thanks for your help.
First, set the Enabled property of all the check boxes (except the
general one) to No.
Then code the AfterUpdate event of the first check box:
Me![CheckBox2].enabled = Me![CheckBox1]
Me![CheckBox3].enabled = Me![CheckBox1]
Me![CheckBox4].enabled = Me![CheckBox1]
Place the same code in the Form's Current event.