J
johnboy7676
I have an unbound textbox, txtAmount. I want to make sure that user
enters only two decimal places, and that the input is numeric.
I tried using InputMask 99999999.99 which works for positive numbers,
but that mask won't allow the minus sign (or plus sign) to be used.
So, how can I allow input of a negative number? Currently, if
TransactType is "Payment", it takes the value in Amount * -1 (if
existing Amount > 0), so that effectively makes it a negative. But, a
TransactType of "Adjustment" could be either negative or positive. I
could make a TransactType of "Adjustment-negative" and
"Adjustment-positive", but there will probably be additional
TransactTypes added later, so think that might get me into trouble.
I can use If Not IsNumeric to check for numeric, but then I can't
check (or just don't know how) for number of decimal places.
Any suggestions? Thanks
John
enters only two decimal places, and that the input is numeric.
I tried using InputMask 99999999.99 which works for positive numbers,
but that mask won't allow the minus sign (or plus sign) to be used.
So, how can I allow input of a negative number? Currently, if
TransactType is "Payment", it takes the value in Amount * -1 (if
existing Amount > 0), so that effectively makes it a negative. But, a
TransactType of "Adjustment" could be either negative or positive. I
could make a TransactType of "Adjustment-negative" and
"Adjustment-positive", but there will probably be additional
TransactTypes added later, so think that might get me into trouble.
I can use If Not IsNumeric to check for numeric, but then I can't
check (or just don't know how) for number of decimal places.
Any suggestions? Thanks
John