V
virtualkeeper via AccessMonster.com
I have a query that I'm trying to insert a zero for a value if there is none
present in the field but it is giving me the wrong answer. The premise is
that you start with a paint mixture (Application1) and subtract the leftover
(OzLeft) and mulitply that by .117825 to get the gallons and then multiply
that by the Volitile Organic Compounds then divide the result by the amount
of spraying time (time end - time start) to arrive at a VOC per hour output.
LbsHr2: Sum(((Nz([Application1],0)-Nz([OzLeft],0))*0.007825)*[VOC])/(Nz(
[TimeEnd],2)-Nz([TimeStart],1))
Why is this mathmatically giving me a wrong answer when there ARE values in
the fields? I've racked my brain on this one and can't figure it out.
present in the field but it is giving me the wrong answer. The premise is
that you start with a paint mixture (Application1) and subtract the leftover
(OzLeft) and mulitply that by .117825 to get the gallons and then multiply
that by the Volitile Organic Compounds then divide the result by the amount
of spraying time (time end - time start) to arrive at a VOC per hour output.
LbsHr2: Sum(((Nz([Application1],0)-Nz([OzLeft],0))*0.007825)*[VOC])/(Nz(
[TimeEnd],2)-Nz([TimeStart],1))
Why is this mathmatically giving me a wrong answer when there ARE values in
the fields? I've racked my brain on this one and can't figure it out.