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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

About combo boxes

Status
Not open for further replies.

karaeloko

Industrial
Joined
May 26, 2003
Messages
2
Location
PA
Hi,
If I have 2 combo boxes (activex), how do I enable/disable the second combo box depending on what is chosen in the first one.

Thx in advanced for any help.
 
Put something like the following in the ComboBox1_Change event procedure:
Code:
    Select Case ComboBox1.Value
        Case 1
            ComboBox2.Enabled = True
        Case 2
            ComboBox2.Enabled = True
        Case 3
            ComboBox2.Enabled = False
        Case 4
            ComboBox2.Enabled = True
    End Select

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top