Can you help me build the following IIF condition in the calculated query:
the condition is that SumOfCartons should be = SumOfQuantity/pack, if pack is less than 6
and SumOfcartons should be = SumOfQuantity is pack is greater than 6
I have tried to build the following :
SumOfCartons: Int ((IIf([pack]<6 SumOfQuantity]/[pack];SumOfQuantity))
But Access does not accept this.I will be grateful if somebody help me correct my error