My Assistant
|
|
Oct 31 2006, 11:25 AM
Post
#1
|
|
|
New Member Posts: 3 |
Hi,
I was a very proficient Access user previously and am starting to use it again after about 2 1/2 years of not using it. I cant remember how to do this. I have a table that has 970 records, in this there are approx. 25 columns of details. I need to design a query (or report of some sort) that will populate all records that have at least 1 of these cells blank. I did this and added 'Is Null' under each criteria, but this pulled zero records. Some of these records have some of the info but missing various parts, some records have all the details required. I hope this makes sense, can someone help me out here, how do I do this?? Thanks!! Danielle |
|
|
|
![]() |
Oct 31 2006, 11:29 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 23,583 From: Mississippi |
You'll want to put the Is Null on the Or rows. That should fetch the records that have FieldA null OR FieldB null, etc.
|
|
|
|
Oct 31 2006, 11:38 AM
Post
#3
|
|
|
New Member Posts: 3 |
Thanks for the very quick reply!
I think I got lost somewhere there though, maybe I misunderstood what you are saying. I put 'Is Null' under the 'or' row (underneath the criteria row) and I got the same result, first I tried to pnly put it in the 'or' row, but that automatically put it in the criteria row, then I put it in both rows and that didnt work either. Feeling really lost now....thanks for your help!! Danielle |
|
|
|
Oct 31 2006, 12:16 PM
Post
#4
|
|
|
UtterAccess Guru Posts: 769 From: Las Vegas NV |
25 rows is a lot, a little normalization can go a long way (as Ive just began to learn) and chances are it would be wise to restructure your data to make jobs like these easier...
if you dont have the time to rebuild: I would suggest just doing it by hand... fill in each criteria one at a time then run the query then delete and add to the next field... I mean 25 is a lot but you could probably get the whole thing done in an afternoon... |
|
|
|
Oct 31 2006, 02:16 PM
Post
#5
|
|
|
Retired Moderator Posts: 10,493 From: Lexington/Louisville KY USA |
Only need one query. Each field needs to be checked for Null and Zero Length strings, so the criteria is going to look something like:
CODE Is Null Or "" Is Null Or "" Is Null Or "" Is Null or "" Each Is Null Or "" needs to be on its own line for each field being checked. |
|
|
|
Nov 2 2006, 09:26 AM
Post
#6
|
|
|
New Member Posts: 3 |
Perfect!!
Thanks NoahP that worked and I ran my report today!! Thanks all for the responses..... Danielle |
|
|
|
Nov 2 2006, 09:30 AM
Post
#7
|
|
|
Retired Moderator Posts: 10,493 From: Lexington/Louisville KY USA |
You are welcome!
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 20th June 2013 - 05:18 AM |