Solved

criteria: is not null doesn't work on an expression

Posted on 2004-09-01
2
581 Views
Last Modified: 2010-05-18
the expression:

HasValue: IIf(Not IsNull([column_a]) And Not IsNull([column_b]) And Not IsNull([column_c]),"T","")

cannot accept the criteria: is not null

how can i limit my query to do this
0
Comment
Question by:manoj91
2 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 350 total points
ID: 11959495
Whereabouts are you trying to use the criteria? What version of Access are you using btw?

The above expression will never be null - it will either equal "T" or "".Try:
<>""
0
 

Author Comment

by:manoj91
ID: 11959511
access 2002
Field: HasValue: IIf(Not IsNull([FName_Council]) And Not IsNull([LName_Council]) And Not IsNull([CompName_Council]),"T",null)
Criteria: Is Not Null

that works, tks.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now