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

Using a choice in a combo box to disable controls

Status
Not open for further replies.

mooneye

Technical User
Jan 14, 2002
27
IE
I am trying to disable controls on a form based on the value on display in a combo box. The value changes as I search through records through records and I am trying to disable controls depending on what value is currently stored by the field related to the combo box.
 
hi,
Here's a way to do it wherever strTriggerValue is selected, CommandButton1 greys out...
Code:
    If ComboBox1.Text = strTriggerValue Then
        CommandButton1.Enabled = False
    Else
        CommandButton1.Enabled = True
    End If
Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top