nested if

N

Nad

Hi ,
Need VB code to check the below condition
If Conditon1 is true Or if Condition2 is true Or if Condition3 is true then
Statment1 Else Statment2.
i.e to check if either of any three condition is true then Statment1
otherwise Statment2.
Regards,
 
S

Stefan Hoffmann

hi Nad,
Need VB code to check the below condition
If Conditon1 is true Or if Condition2 is true Or if Condition3 is true then
Statment1 Else Statment2.
i.e to check if either of any three condition is true then Statment1
otherwise Statment2.
You should use F1 more often:

If Condition1 Or Condition2 Or Condition3 Then
Statement1
Else
Statement2
End If

Simply replace ConditionX with your condition expression. Enclose them
into parentheses, if they are more complex.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top