Solved

Quesry to find only Null fields

Posted on 2011-03-15
4
316 Views
Last Modified: 2012-05-11
I am trying to query a table and find only those records that have a null in the Proj_ID field

the end of SQL statement is
WHERE (((tblLocalProject.[Proj_ID])=Nz([Proj_ID])));

what this returns is all records that don't have a null

0
Comment
Question by:ChuckRush
  • 2
4 Comments
 

Author Comment

by:ChuckRush
ID: 35140471
Sorry abotu the typing -- multi-tasking -- Query!
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 125 total points
ID: 35140493
select * from
tblLocalProject
where tblLocalProject.[Proj_ID] Is null
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 125 total points
ID: 35140575
To also cover the case of Empty String ("") as well as Null ... you can use:

WHERE Nz([tblLocalProject].[Proj_ID] , "") = "" 
0
 

Author Closing Comment

by:ChuckRush
ID: 35140620
Thanks Guys! I was using isnull()   and it was an issue
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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 retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

863 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

22 Experts available now in Live!

Get 1:1 Help Now