Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Visible on Form

Status
Not open for further replies.

DaveLB

Programmer
Mar 1, 2002
1
US
I want to have a combo box on my form w/ a check box and when I check the box a particular combo box is then visible, otherwise it holds space on the form but is not visible. I will end up[ expanding this to several combo boxes, but I am having problems just getting one to function this way.

I am a novice user, but have been using for awhile.
 
Set the on the OnClick event of the check box, to [Event Procedure]. In the event procedure, do something like this:

Private Sub chkBox_Click()

cmbBox.Visible = chkBox

End Sub

What this does is, if chkBox is True (checked) then the visible property of the combobox is true. If chkBox is false, then visible property of combobox is false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top