In my query I have
I have an orders table where I list how many KITS each customer orders. Can be any number from 1 to 100. Well I use one of 4 boxes to send the orders and I am trying to get a better use of the amount of boxes I am sending based on the number of kits per order. I know if they order 15 kits I use my 24Box. With the switch command can I do a BETWEEN type of function?
I want to say:
Exp1: Switch([Kits]=1,"1Box",[Kits]>2<11,"10Box",[Kits]>12<25,"25Box",[Kits]>26<49,"50Box")
Can this be done? Thanks.
Code:
Exp1: Switch([Kits]=1,"1Box",[Kits]=2,"10Box",[Kits]=3,"10Box",[Kits]=4,"10Box",[Kits]=5,"10Box")
I have an orders table where I list how many KITS each customer orders. Can be any number from 1 to 100. Well I use one of 4 boxes to send the orders and I am trying to get a better use of the amount of boxes I am sending based on the number of kits per order. I know if they order 15 kits I use my 24Box. With the switch command can I do a BETWEEN type of function?
I want to say:
Exp1: Switch([Kits]=1,"1Box",[Kits]>2<11,"10Box",[Kits]>12<25,"25Box",[Kits]>26<49,"50Box")
Can this be done? Thanks.