"If" VB Syntaxe

  • Thread starter Thread starter Marie Lavoie
  • Start date Start date
M

Marie Lavoie

I should have an answer in 5 sec maximum I guess... But can't find it!!
How do I give 2 conditions (or more) to a If?

If condition1 and condition2 then
If (condition1 and condition2) then

If condition1 and if condition2 then

.. ???



Thank you.

Marie
 
Here's an example; you can also use Or instead of And:

If A = B And C = D Then
If E = F And G = H Then
... and so on
End If
End If

Regards,
Wes
 
If A = B And C=D Then
...
--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Back
Top