G
Guest
I have calculated field on my report. All is working fine when all data
exist, but when there is no data it is displaying #Error. I have tried
different variations of the IIf statement but nothing works so far. My
original calculations are as follows:
=Machine hours at commencement]+subrptHoursWorked1.Report![SumOfHours
Worked])/[Life expectancy]*100
The latest variation of the IIf statement I have tried is:
=IIf(([Life expectancy]>0 And subrptHoursWorked1.Report![SumOfHours
Worked]>0),([Machine hours at
commencement]+subrptHoursWorked1.Report![SumOfHours Worked])/[Life
expectancy]*100,"")
How I need to modify my IIf to fix this problem ?
Thanks for help.
Tony
exist, but when there is no data it is displaying #Error. I have tried
different variations of the IIf statement but nothing works so far. My
original calculations are as follows:
=Machine hours at commencement]+subrptHoursWorked1.Report![SumOfHours
Worked])/[Life expectancy]*100
The latest variation of the IIf statement I have tried is:
=IIf(([Life expectancy]>0 And subrptHoursWorked1.Report![SumOfHours
Worked]>0),([Machine hours at
commencement]+subrptHoursWorked1.Report![SumOfHours Worked])/[Life
expectancy]*100,"")
How I need to modify my IIf to fix this problem ?
Thanks for help.
Tony