davidboutche
08-25-2009, 07:32 AM
I have a form with lots of textboxes. What I'm trying to achieve is this:
When user clicks a check box, it will make a large selection of other items become invisible.
I have used this code to apply it to one item:
Private Sub nophoenixbox_change()
If extrainfoform.nophoenixbox = True Then
homenoBox.Visible = False
Else: homenoBox.Visible = True
End If
End Sub
Is there an easy was to write this or do I have to write it out each time?
I know I can do something similar using the 'with' command but is there anything to do it in reverse, ie:
For thisbox
thatbox
anotherbox .visibile = false
Thanks
When user clicks a check box, it will make a large selection of other items become invisible.
I have used this code to apply it to one item:
Private Sub nophoenixbox_change()
If extrainfoform.nophoenixbox = True Then
homenoBox.Visible = False
Else: homenoBox.Visible = True
End If
End Sub
Is there an easy was to write this or do I have to write it out each time?
I know I can do something similar using the 'with' command but is there anything to do it in reverse, ie:
For thisbox
thatbox
anotherbox .visibile = false
Thanks