I have a combobox with a list of codes(product codes) and I have a text box that represents the dollar amount....I want to enable the button for the codes that do not require a dollar amount and only enable the button if a dollar amount is entered for the codes that require a dollar amount....Can anyone suggest anything? This is what I have.....eg. one of my codes that require a dollar amount is "MTG"
Private Sub Combo1_Change()
Command1.Enabled = Combo1.Text <> ""
End Sub
Private Sub Combo1_Change()
Command1.Enabled = Combo1.Text <> ""
End Sub