
Signature
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
In a Totals query, I think it would have to be styled a bit different, Jerry.
Hours Earned: Sum(IIf([UHP] = 0, 0,[Qty]/[UPH])
Are you and I the only ones not at the Summit :(

Signature
Dave Hargis, Microsoft Access MVP
> Hours Earned: IIf([UHP] = 0, 0,Sum([Qty]/[UPH]))
>
[quoted text clipped - 3 lines]
> > Sum([Qty]/[UPH]) = 0 , write now I’m getting a message that says “Division by
> > zero”
Gonzalo - 17 Apr 2008 00:59 GMT
You are correct, the way you styled it works, thank you.
> In a Totals query, I think it would have to be styled a bit different, Jerry.
>
[quoted text clipped - 9 lines]
> > > Sum([Qty]/[UPH]) = 0 , write now I’m getting a message that says “Division by
> > > zero”