Append query rounding

M

Max

I have an append query that rounds off all digits despite
that fact that in both the query and the table field
settings specify rounding to 2 digits. The formula in the
query also has ROUND( expr, 2) specified to ensure that
all digits are intact, but the output is still just two
zeros after a decimal point.

Any suggestions?
 
J

John Vinson

I have an append query that rounds off all digits despite
that fact that in both the query and the table field
settings specify rounding to 2 digits. The formula in the
query also has ROUND( expr, 2) specified to ensure that
all digits are intact, but the output is still just two
zeros after a decimal point.

Any suggestions?

I'd suggest you check the datatype of the field into which you are
appending the data. The default Number datatype is Long Integer, which
*is* an integer: no decimals.

Use either a Number... Float (for 7 digits precision), Number...
Double (for 17 digits precision), or perhaps best, a Currency
datatype. The latter is a scaled integer with exactly four decimals
and does not have the problems of roundoff error of the Float and
Double datatypes.
 

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

Similar Threads

Rounding and appending 2
Append truncates some text fields 4
Rounding Question 3
Rounding up to 2 decimals 4
Rounding number 15
Adding Zeros 7
Different destination fields 3
Leading zeros 3

Top