Hi,
I'm adding 2 fields in a report. The fields are "blank", or empty strings, if there is no calculation done for that record (complicated queries behind it). If one of the two fields is "blank", then the sum is also blank, when it should really return the value of the "nonblank" field. Is my explanation too confusing? How can I set the "blanks" to zeros, so the correct sum is calculated? I tried the IIF using both IsNull and IsEmpty, but that's not working:
IIF( IsNull([CapacityExposure]), "0", [CapacityExposure])
IIF( IsEmpty([CapacityExposure]), "0", [CapacityExposure])
Any suggestions? Thanks in advance!
Shivani
I'm adding 2 fields in a report. The fields are "blank", or empty strings, if there is no calculation done for that record (complicated queries behind it). If one of the two fields is "blank", then the sum is also blank, when it should really return the value of the "nonblank" field. Is my explanation too confusing? How can I set the "blanks" to zeros, so the correct sum is calculated? I tried the IIF using both IsNull and IsEmpty, but that's not working:
IIF( IsNull([CapacityExposure]), "0", [CapacityExposure])
IIF( IsEmpty([CapacityExposure]), "0", [CapacityExposure])
Any suggestions? Thanks in advance!
Shivani