Hi all,
I am having some trouble trying to figure this one out.
Report field: [txtTonnnes], Total tonnes in a day.
SubReport Field (in footer): [txtTotal], Total downtime in minutes.
The following will calculate tonnes/hr for a day
=([txtTonnes]/(1440-Reports!rptShiftReport!rptSubTotalDowntime!txtTotal))*60
My problem is if there is no downtime I get a divide by zero error!
I've tried the IIf() statement but I can't get it right.
Does any one have a solution?
Cheers,
millrat
I am having some trouble trying to figure this one out.
Report field: [txtTonnnes], Total tonnes in a day.
SubReport Field (in footer): [txtTotal], Total downtime in minutes.
The following will calculate tonnes/hr for a day
=([txtTonnes]/(1440-Reports!rptShiftReport!rptSubTotalDowntime!txtTotal))*60
My problem is if there is no downtime I get a divide by zero error!
I've tried the IIf() statement but I can't get it right.
Does any one have a solution?
Cheers,
millrat