I read the past posts regarding the Division by Zero. However, it could not resolve my issue.
Let's say I have a field called, FTE. I have six records. Some of the records have blanked this field out.
ID# FTE
1234 (4.0)
1235 (3.0)
1236
1237 (4.5)
1238
1239 (5.0)
* I am using parenthesis to make it easier to read, not to apply any negative value.
I would like to sum or average my calculation on the group footer. I have not created any additional field from the query. However, I created a calculated field on the report, using the NZ function. It gave me the "division by Zero" error message.
Question:
1. How can I sum the FTE field and average them? Will the "=iif(NZ(sum(..... )" work?
2. For the average, how can I ensure that the blank will be omitted? In this case, the divisor should be four (4) records.
3. Do I need to create another hidden field to count the "FTE" field in the detail band? In the real situation, I have more than 20 fields.
Thank you for your help.
Let's say I have a field called, FTE. I have six records. Some of the records have blanked this field out.
ID# FTE
1234 (4.0)
1235 (3.0)
1236
1237 (4.5)
1238
1239 (5.0)
* I am using parenthesis to make it easier to read, not to apply any negative value.
I would like to sum or average my calculation on the group footer. I have not created any additional field from the query. However, I created a calculated field on the report, using the NZ function. It gave me the "division by Zero" error message.
Question:
1. How can I sum the FTE field and average them? Will the "=iif(NZ(sum(..... )" work?
2. For the average, how can I ensure that the blank will be omitted? In this case, the divisor should be four (4) records.
3. Do I need to create another hidden field to count the "FTE" field in the detail band? In the real situation, I have more than 20 fields.
Thank you for your help.