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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering out null or empty fields

Status
Not open for further replies.

armstrong722

Technical User
Feb 26, 2002
32
0
0
US
I have built a query that pulls out certain people with their email addresses. I get some in there that do not have email addresses(and won't) I am trying to get them out of the list but to no avail. I use fieldname <> &quot;&quot; or fieldname <> null and there is no difference between that and not putting in those statements is there anything else that I could be doing wrong???
 
The email address field may contain a single or multiple space characters. Try testing for Trim(fieldname)<>&quot;&quot;.
 
Try - Is Not Null - instead of <> null. Sometimes Access doesn't interpret <> null correctly. Also continue to use <> &quot; &quot; in your criteria. Sometimes - Not Like &quot; &quot; - works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top