W
William
I have a gry which contains the following formula:
IIf(([YEScount]-[ITcount]-[LPcount])>0,[ETcount]*100/([YEScount]-[ITcount]-[LPcount]),0)
The issue is that the ITcount and LPcount fields contain some null values
which cause the formula not to calculate in some records. Two questions:
1. I know the nz function can force zeros into the null value fields, but I
am unable to determine the correct placement of nz in the formula to make
that happen. Suggestions?
2. In the same database is another qry that uses a formula identical to the
one above. However, when this query runs, there are no null values in the
fields and the formula calculates correctly in every row. All fields have
zeros and no null values. Yet, just as in the formula above, no nz is
currently in the formula. So there must be another way to achieve the result
of forcing blank fields to display zero other than using the nz function. I
am wondering what that is?
Thanks for assistance,
IIf(([YEScount]-[ITcount]-[LPcount])>0,[ETcount]*100/([YEScount]-[ITcount]-[LPcount]),0)
The issue is that the ITcount and LPcount fields contain some null values
which cause the formula not to calculate in some records. Two questions:
1. I know the nz function can force zeros into the null value fields, but I
am unable to determine the correct placement of nz in the formula to make
that happen. Suggestions?
2. In the same database is another qry that uses a formula identical to the
one above. However, when this query runs, there are no null values in the
fields and the formula calculates correctly in every row. All fields have
zeros and no null values. Yet, just as in the formula above, no nz is
currently in the formula. So there must be another way to achieve the result
of forcing blank fields to display zero other than using the nz function. I
am wondering what that is?
Thanks for assistance,