Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
May 26, 2003
2
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.
 
Replies continue below

Recommended for you

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