Criteria in If Statement

TimTDP

Registered User.
Local time
Today, 18:08
Joined
Oct 24, 2008
Messages
213
I need help with the syntax for an if statement!

If pubEmailAddress <> "No Valid Email Address" Or pubEmailAddress <> "No Email Address" Then
......
Else
.......
End Id

So if pubEmailAddress = "an email address" then the code must run before "Else"

If pubEmailAddress <> an email address, then the code must run after "Else"

What is the correct syntax for the first line in the if statement?
I suppose I could use an ElseIf but I am hoping not too!

Many thanks
 
So you want to do the <> tests but want the = result to run before the Else ?!

Why? What difference does it make?

Brian
 

Users who are viewing this thread

Back
Top Bottom