Is it possible to group controls?

baquist

Registered User.
Local time
Today, 09:28
Joined
Jan 16, 2003
Messages
10
Hi,

I have a pretty standard form to enter data about contracts. Depending on the type of contract, the user will answer a yes/no type question, and the result will determine what set of information needs to be entered next. Since the variables are grouped intrinsically, I would like to make them visible or not depending on what is necessary. I know how to do this with just one control, but not several at a time. Is there a way to treat them as a group, and have the form make the group appear/disappear as needed, or do I have to list out each control everytime i need to do this? Any help would be much appreciated.


Carsie
 
You could create a sub for each group that sets the visibility.

Code:
Public Sub Location_Hide
     Me.txtBuilding.Visible = False
     Me.txtRoom.Visible = False
End Sub

Public Sub Location_Show
     Me.txtBuilding.Visible = True
     Me.txtRoom.Visible = True
End Sub
 
Thanks, i will try it that way. It should do the trick.
 

Users who are viewing this thread

Back
Top Bottom