VickyWinters
Technical User
I am having a real problem with this null value. I did a crosstab query with female, male, unknown, as column headings. I wizarded a monthly report from the query. Some months contain all females, therefore, leaving blanks in my report for males. How do I get the blank cells to display zero numbers so that I can subtotal and total the amounts?
I have tried the property OnNoData as:
msgbox ("0"
cancel = true
This does nothing to my report. Still blank cells.
I have tried the control source as:
=Nz([Male], 0)
and
=Nz([Male], "0"
and
=IIf(IsNull([Male]), "0", [Male])
These either give me an error or does nothing to my cells. At times these functions don't even adhere to the box, unless I type the formula directly into the text box.
I don't know much about SQL so I did not try anything in that area. If I could get the query to display zeros that should solve my problem with the reports.
I tried looking through the forum for similar problems. The solution appears as the control source above, but it does not work for me. I also have Counts and Sums presently in some of the control sources already. How would I code those with the formula above? Example: =Sum([Females]
Obviously, I am doing something wrong. Can you help? Please be descriptive. I, like most, on the forum, am learning.
Thanks in advance.
I have tried the property OnNoData as:
msgbox ("0"
cancel = true
This does nothing to my report. Still blank cells.
I have tried the control source as:
=Nz([Male], 0)
and
=Nz([Male], "0"
and
=IIf(IsNull([Male]), "0", [Male])
These either give me an error or does nothing to my cells. At times these functions don't even adhere to the box, unless I type the formula directly into the text box.
I don't know much about SQL so I did not try anything in that area. If I could get the query to display zeros that should solve my problem with the reports.
I tried looking through the forum for similar problems. The solution appears as the control source above, but it does not work for me. I also have Counts and Sums presently in some of the control sources already. How would I code those with the formula above? Example: =Sum([Females]
Obviously, I am doing something wrong. Can you help? Please be descriptive. I, like most, on the forum, am learning.
Thanks in advance.