D
DMUM via AccessMonster.com
Hello
I have created a query that produces a few fields that contain blank spaces.
I want the query to show 0 when the field has no data. I used the following
code:
Defects: IIf(IsNull([dblDefects]),"0",[dblDefects])
I get no errors when I run the query, but the blank fields are not populated
with "0"
I also used: Defects: IIf(IsNull([dblDefects]),0,[dblDefects])
It produces the same output.
I tried isEmpty, no errors, but the fields are still blank
What I am trying to prevent is missing rows when I run the query with a date
criteria. Running the query with no criteria, gives me all the rows,
regardless of the field contents. However, if I run the query I put in date
criteria, it removes any rows that contain no data - thus the need to have
the "0"'s in the blank fields
Any ideas?
Thanks
I have created a query that produces a few fields that contain blank spaces.
I want the query to show 0 when the field has no data. I used the following
code:
Defects: IIf(IsNull([dblDefects]),"0",[dblDefects])
I get no errors when I run the query, but the blank fields are not populated
with "0"
I also used: Defects: IIf(IsNull([dblDefects]),0,[dblDefects])
It produces the same output.
I tried isEmpty, no errors, but the fields are still blank
What I am trying to prevent is missing rows when I run the query with a date
criteria. Running the query with no criteria, gives me all the rows,
regardless of the field contents. However, if I run the query I put in date
criteria, it removes any rows that contain no data - thus the need to have
the "0"'s in the blank fields
Any ideas?
Thanks