Purchase Order Total Errors

K

Kristy

I'm getting a validation error of "maximum of 4 digits after the decimal
allowed" in the total column of my Purchase Order the strange thing is its
only with certain figures for example 6 x 1.95 produces this error however 6
x 1.94 works fine. I've tried using - round(@Quantity * @UnitPrice * 100) *
..01 which fixed some of the amounts but theres still others that don't work.

Is anyone else having this problem?
 
R

Renee in Juneau

I haven't seen this, but it makes me wonder....

Do you have your involved textboxs set to integer or decimal, and the
format set to number or currency, and the number of decimal places set
to 2?
 
K

Kristy

I thought it might be something like that too and I tried changing the data
type of the field with no success, but your suggestion prompted me to look at
this further and I've found that the problem seems to be fixed by setting the
data type to nvarchar.

Thanks for your help...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top