String condition

T

Tom

Hi all,
I have combo box with 2 options: Standing or Special
I have a problem to put that combo box contant in an IF statment.
what is the right way to write:

If combobox = Special then......

TIA,

Tom
 
S

shanesullaway via AccessMonster.com

Hey Tom,

You should be able to just put:

If Me.cboBoxName = "Special" then
'Whatever you want it to do
Else
"Whatever you want it to do if the cboBox does not = "Special"
End If

HTH
Shane
 
T

Tom

Thanks.
shanesullaway via AccessMonster.com said:
Hey Tom,

You should be able to just put:

If Me.cboBoxName = "Special" then
'Whatever you want it to do
Else
"Whatever you want it to do if the cboBox does not = "Special"
End If

HTH
Shane
 
Top