Solved

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

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

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

707 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

17 Experts available now in Live!

Get 1:1 Help Now