Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NOT IsNull(EmailAddress,'') <> '' 1

Status
Not open for further replies.

onressy

Programmer
Mar 7, 2006
421
CA
Helo,
currently i have this:
strWhereClause = " EmailAddress <> '' AND NOT EmailAddress IS NULL"

Trying to write it more effieciently, something like this (which isn't working?)
Code:
NOT IsNull(EmailAddress,'') <> ''
Thanks

 
that might be because all the white spaces you are seeing may not be spaces...they can be line feed or tabs...

so you need to check for all of these characters...

-DNG
 


In what way is it not working ?

try removing the NOT from the beginning, as this negates the <> operator, reversing the check of '' and '' being equal... returning true when Email is null or '' - hard to tell if this is what you want as you do it the opposite way in the first statement

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top