excess decimal places

G

Guest

I have a form showing currency. When I click on a text box, the usual 2
decimal places convert to FOURTEEN! Why is this? It is most annoying and
time consuming.
eg $1.24 becomes $1.24000000953674. Any help on this please
 
G

Guest

Hi Benedict,

You can use the Round function to truncate the value to two decimal places.
Here is a link to a KB article that I think you will find helpful:

ACC2000: Round or Truncate Currency Values to the Intended Number of Decimals
http://support.microsoft.com/?id=210564


Tom

http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________

:

I have a form showing currency. When I click on a text box, the usual 2
decimal places convert to FOURTEEN! Why is this? It is most annoying and
time consuming.
eg $1.24 becomes $1.24000000953674. Any help on this please
 
J

John Vinson

I have a form showing currency. When I click on a text box, the usual 2
decimal places convert to FOURTEEN! Why is this? It is most annoying and
time consuming.
eg $1.24 becomes $1.24000000953674. Any help on this please

You're storing the data in a Number... Double datatype, which is an
APPROXIMATION stored to 14 decimals.

Change the datatype from Number to Currency.

It's confusing because you can apply a currency Format to a Number
datatype field - but that doesn't change what's stored, only what's
displayed.

John W. Vinson[MVP]
 
G

Guest

Thank you, John. That proved incredibly easy to fix. I had currency showing
on the form, but number on the source table. It took 30 seconds to change,
and the excess decimals have magically disappeared! Cheers!
 

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