
Originally Posted by
redekopp
Hi there I was wanting to do a code where my checkboxes will react to checkbox 1, in this purpose I have 4 checkboxes, if check1 is true then I want 2,3,4 true as well no exceptions. if check1 is false I want it so that 2,3,4 have to be selected, at least one of them...
In addition to applying data validation as suggested by June7, I would probably employ the enabled property for those options that are children to Check1.
Code:
If Me.Check1 = True Then
Me.Check2 = True
Me.Check3 = True
Me.Check4 = True
Me.Check2.Enabled = False
Me.Check3.Enabled = False
Me.Check4.Enabled = False
Else
Me.Check2.Enabled = True
Me.Check3.Enabled = True
Me.Check4.Enabled = True
End If