snoopy6129
MIS
I'm working on a database of products with inventory tracking. I'm using a form to list all products with the Quantity On Hand (QOH), which is a number. What I'm trying to do is if a product's QOH is below a certain value, display the word "Low."
The way I'm doing this is with a Text Box with the following in the control source:
=IIf(([QOH]<[Forms]![MyFormName]![SetFlagLow]),"Low",""
[QOH]: is the Quantity on Hand (data derived from a query)
[Forms]![Form]![SetFlagLow]: the value (entered by user in the "parent" form)
This expression is not evaulating correcting. No error message, but the result is displaying "Low" when the QOH is clearly greater than the value the user entered in for the flag.
However, the expression works perfectly if the flag is statically set as in the following expression:
=IIf(([QOH]<5),Low",""
I could just statically set the value, but I need to have the user be able to enter the value that they need.
Anyone know what is maybe wrong with my expression?
Thanks in advance.
The way I'm doing this is with a Text Box with the following in the control source:
=IIf(([QOH]<[Forms]![MyFormName]![SetFlagLow]),"Low",""
[QOH]: is the Quantity on Hand (data derived from a query)
[Forms]![Form]![SetFlagLow]: the value (entered by user in the "parent" form)
This expression is not evaulating correcting. No error message, but the result is displaying "Low" when the QOH is clearly greater than the value the user entered in for the flag.
However, the expression works perfectly if the flag is statically set as in the following expression:
=IIf(([QOH]<5),Low",""
I could just statically set the value, but I need to have the user be able to enter the value that they need.
Anyone know what is maybe wrong with my expression?
Thanks in advance.