In a text box control on a report footer I have the following:
=sum(nz([Carded Capacity]) and it does not work. (I get message that JET could not execute the SQL statement because it contains a field that has an invalid data type).
If I change it to:
=nz([Carded Capacity]) does work. But then I only get the value of the last record.
The Carded Capacity field has nulls. I do not have any problems when I force 0 in where there are nulls - (then I also don't need the nz function). However, I am curious as to why I must force 0's into my table, when I thought the nz function converted nulls to zero's? And why would adding "sum" make it not work? Thank you. Marie
=sum(nz([Carded Capacity]) and it does not work. (I get message that JET could not execute the SQL statement because it contains a field that has an invalid data type).
If I change it to:
=nz([Carded Capacity]) does work. But then I only get the value of the last record.
The Carded Capacity field has nulls. I do not have any problems when I force 0 in where there are nulls - (then I also don't need the nz function). However, I am curious as to why I must force 0's into my table, when I thought the nz function converted nulls to zero's? And why would adding "sum" make it not work? Thank you. Marie