W
WJ
Please help me with this:
I have a combo box "Client_Broker_Combo", and a text box
following it "Broker_Other_Fill_In". So if the user
selects "Other" from the combo box, then I want to enable
the text box, so that the user can enter the broker name.
But right now, if the user does not choose anything from
the combo box, the text box is still enabled. And I want
to disable the text box if the user chooses nothing from
the combo. I've tried "isEmpty", "isNull", but nothing
works. so please help...The following is the code I have:
Private Sub Client_Broker_Combo_AfterUpdate()
If Client_Broker_Combo <> "Other" Then
Client_Broker_Other_Label.ForeColor = 8421504
Broker_Other_Fill_In.ForeColor = 8421504 'LAB
Broker_Other_Fill_In.Value = " " 'LAB
Broker_Other_Fill_In.Enabled = False
Else
Client_Broker_Other_Label.ForeColor = QBColor(0)
Broker_Other_Fill_In.ForeColor = QBColor(0)
Broker_Other_Fill_In.Enabled = True 'LAB
End If
End Sub
I have a combo box "Client_Broker_Combo", and a text box
following it "Broker_Other_Fill_In". So if the user
selects "Other" from the combo box, then I want to enable
the text box, so that the user can enter the broker name.
But right now, if the user does not choose anything from
the combo box, the text box is still enabled. And I want
to disable the text box if the user chooses nothing from
the combo. I've tried "isEmpty", "isNull", but nothing
works. so please help...The following is the code I have:
Private Sub Client_Broker_Combo_AfterUpdate()
If Client_Broker_Combo <> "Other" Then
Client_Broker_Other_Label.ForeColor = 8421504
Broker_Other_Fill_In.ForeColor = 8421504 'LAB
Broker_Other_Fill_In.Value = " " 'LAB
Broker_Other_Fill_In.Enabled = False
Else
Client_Broker_Other_Label.ForeColor = QBColor(0)
Broker_Other_Fill_In.ForeColor = QBColor(0)
Broker_Other_Fill_In.Enabled = True 'LAB
End If
End Sub