Solved

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

Posted on 2004-09-01
2
584 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can you open the FORM2 2 31
Attachment field in SQL 3 28
Using Multiple  Filters (XLS and XLSX) in File selection dialog 6 33
Help with DoEvents 8 26
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 a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

772 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