I have a report that lists avg cartons pulled per hour. I would like to highlite each recors where the avg falls under 250. I try using a box around the detail section and set the backstyle to 0 or 1 depending on the number here is the sample code i'm using
If Me.avg_ctns < 250 Then
Me.highlt.Backstyle = 0
Else
Me.highlt.Backstyle = 1
End If
This works great until one of the records has zeros as the orders pulled or hours worked and the the avg gets calculated as divided by zero which in turn errors out the report. Is there anyway I can avoid having divided by zero as my results.
Thanks
Ricardo
If Me.avg_ctns < 250 Then
Me.highlt.Backstyle = 0
Else
Me.highlt.Backstyle = 1
End If
This works great until one of the records has zeros as the orders pulled or hours worked and the the avg gets calculated as divided by zero which in turn errors out the report. Is there anyway I can avoid having divided by zero as my results.
Thanks
Ricardo