D
DS
I have an IIf statement in a Query. I was wondering, is there an easier
way to write or do this?
Expr1: IIf([PriceLevel]=1,[Price1],IIf([PriceLevel]=2,[Price2],
IIf([PriceLevel]=3,[Price3],IIf([PriceLevel]=4,[Price4],
IIf([PriceLevel]=5,[Price5],IIf([PriceLevel]=6.[Price6],
IIf([PriceLevel]=7,[Price7])))))))*[Quantity]
As you can see. I have 7 Price levels. The level is determined by the
Menu. Each Price is attached to the Item in the Items Table. Any help
would be appreciated.
Thanks
DS
way to write or do this?
Expr1: IIf([PriceLevel]=1,[Price1],IIf([PriceLevel]=2,[Price2],
IIf([PriceLevel]=3,[Price3],IIf([PriceLevel]=4,[Price4],
IIf([PriceLevel]=5,[Price5],IIf([PriceLevel]=6.[Price6],
IIf([PriceLevel]=7,[Price7])))))))*[Quantity]
As you can see. I have 7 Price levels. The level is determined by the
Menu. Each Price is attached to the Item in the Items Table. Any help
would be appreciated.
Thanks
DS