stretcher012599
Programmer
I am trying to make an error check to notify the user if they try to order an item with a quantity ordered not divisable by the pack quantity. This is what I have so far:
If Request.form("Quantity")/objRS3("CaseQty") <> 1 then
response.write("<font size=2 face=Verdana, Arial, Helvetica, sans-serif>Please select a quantity divisable by the pack quantity.</font>")
response.end
End If
Example: This only works if the ordered quantity is 50 and the case quantity 50. But lets say the pack qty is 50 and the customer orders 150, I want this to be good because it divides evenly. But let's say the pack quantity is 50 and the customer orders 125... I want it to return the error "Please select a quantity divisable by the pack quantity" The pack quantity is stored in the database.
Any suggestions would help.
If Request.form("Quantity")/objRS3("CaseQty") <> 1 then
response.write("<font size=2 face=Verdana, Arial, Helvetica, sans-serif>Please select a quantity divisable by the pack quantity.</font>")
response.end
End If
Example: This only works if the ordered quantity is 50 and the case quantity 50. But lets say the pack qty is 50 and the customer orders 150, I want this to be good because it divides evenly. But let's say the pack quantity is 50 and the customer orders 125... I want it to return the error "Please select a quantity divisable by the pack quantity" The pack quantity is stored in the database.
Any suggestions would help.