W willrans willrans Local time Yesterday, 18:08 Joined Nov 23, 2004 Messages 7 Sep 23, 2005 #1 Please help... I am trying to get the following results. If the Qty is less than 99 bag 10 per, if the qty is between 100 and 999 bag 100 per and if the qty is greater than 999 bag 200 per. Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]>99,"100 PER",IIf([QTY]>999,"200 PER")))) I am only getting the results of "10 PER" AND "100 PER". How do I get the results I want?
Please help... I am trying to get the following results. If the Qty is less than 99 bag 10 per, if the qty is between 100 and 999 bag 100 per and if the qty is greater than 999 bag 200 per. Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]>99,"100 PER",IIf([QTY]>999,"200 PER")))) I am only getting the results of "10 PER" AND "100 PER". How do I get the results I want?
R Rich Guest Sep 23, 2005 #2 Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]>99<999,"100 PER","200 PER")))
W willrans willrans Local time Yesterday, 18:08 Joined Nov 23, 2004 Messages 7 Sep 23, 2005 #3 Thank you very much for the quick reply, but I am still not getting the result of when the qty is greater than 1000 to return "200 PER".
Thank you very much for the quick reply, but I am still not getting the result of when the qty is greater than 1000 to return "200 PER".
B Bhaughbb Registered User. Local time Yesterday, 16:08 Joined Aug 19, 2005 Messages 38 Sep 23, 2005 #4 How about- Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]>999,"200 PER","100 PER"))) test for below the minimum, above the maximum and the rest falls in between?
How about- Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]>999,"200 PER","100 PER"))) test for below the minimum, above the maximum and the rest falls in between?
R Rich Guest Sep 23, 2005 #5 oops, Alcohol Pkg Qty: IIf([QTY]<=99,"10 PER",(IIf([QTY]<999,"100 PER","200 PER")))
W willrans willrans Local time Yesterday, 18:08 Joined Nov 23, 2004 Messages 7 Sep 24, 2005 #6 Thank you so very much!!!!!!!!!!!!!!!!!! Both formulas work well!!!