more than one if statement

scottappleford

Registered User.
Local time
Today, 00:06
Joined
Dec 10, 2002
Messages
134
Hi

I would like to specify more than one criteria of an if statement.

e.g, if = ? then ?
but i would like to add more critreria as i have more than one selection in my combo box.

Thanks in advance
 
You could write the code something like

Code:
If me.field = 1 Then
'Do something
ElseIf
me.field = 2 then
'Do something
End If
End if

or you could use a select case statement

Code:
Select case me.field
Case >= 1
'do something
Case>= 2
'do something
Case >= 3
'Do something
End Select

Hope this Helps
Andy
 
Thanks Pat,

It's been a long day.

Andy
 

Users who are viewing this thread

Back
Top Bottom