K
klp via AccessMonster.com
Need a quick fix for the Mod function.
I understand that the Mod function rounds but in my case I need it NOT to
round up. Is there a way around this.
For example when sales puts in and order qty it has to be an even multiple of
a dictated number. If it is then it will continue to the next field otherwise
it will pop up a message box explaining that the qty entered is an invalid
qty - cannot order part rolls and will display what the roll multiple is. In
some cases we can override this. I'm having the problem of my numbers
rounding. What can I do so that the decimal is not ignored?
For example:
I have an order qty of 9.
The Roll Multiple is 4.5. This is an even multiple. But if they put in an
Order Qty of 8 the division is 1.7 w/ a remainder of 4. So in this case a
message would come up and they can have the decision to override or re-enter
a qty. Instead it's looking as if the 4.5 is 4 - giving me an even multiple
of 8. Any suggestions around this?
I understand that the Mod function rounds but in my case I need it NOT to
round up. Is there a way around this.
For example when sales puts in and order qty it has to be an even multiple of
a dictated number. If it is then it will continue to the next field otherwise
it will pop up a message box explaining that the qty entered is an invalid
qty - cannot order part rolls and will display what the roll multiple is. In
some cases we can override this. I'm having the problem of my numbers
rounding. What can I do so that the decimal is not ignored?
For example:
I have an order qty of 9.
The Roll Multiple is 4.5. This is an even multiple. But if they put in an
Order Qty of 8 the division is 1.7 w/ a remainder of 4. So in this case a
message would come up and they can have the decision to override or re-enter
a qty. Instead it's looking as if the 4.5 is 4 - giving me an even multiple
of 8. Any suggestions around this?