P
polparrot via AccessMonster.com
I have a report that has runs off of a query of invoices by user specified
date range. The report lists each product with a calculated field of the sum
of the quantity [SOQ] giving me total items sold. I am then creating another
calculated field to determin the number of cases of product sold by using
this iif statement: =IIf(([SOQ]<[UPC]),0,(Int(([SOQ])/[UPC]))) where [UPC] is
the units per case. My problem is that the results are incorrect, or
returning TRUE VALUE more often than not.
For example:
1st item correct, 2nd incorrect, 3rd and 4th incorrect, 5th correct, 6 7 & 8
incorrect, 9 & 10 correct, next 6 correct, next 1 incorrect, next 4 correct ..
......
I have looked at the rusults of the query and manually done the calculations
and I don't find anything amiss in the data.
Any ideas or suggestions anyone?
date range. The report lists each product with a calculated field of the sum
of the quantity [SOQ] giving me total items sold. I am then creating another
calculated field to determin the number of cases of product sold by using
this iif statement: =IIf(([SOQ]<[UPC]),0,(Int(([SOQ])/[UPC]))) where [UPC] is
the units per case. My problem is that the results are incorrect, or
returning TRUE VALUE more often than not.
For example:
1st item correct, 2nd incorrect, 3rd and 4th incorrect, 5th correct, 6 7 & 8
incorrect, 9 & 10 correct, next 6 correct, next 1 incorrect, next 4 correct ..
......
I have looked at the rusults of the query and manually done the calculations
and I don't find anything amiss in the data.
Any ideas or suggestions anyone?