decimal points

B

blendes

My problem is that i have to fields in my databse that will hold values like
..240. needs to hold all three decimal places including 0. I can not get the
field to show the value when it prints. In the datasheet it holds the correct
vuale but the form displays only .24.
 
K

Klatuu

Neither leading nor trailing zeros are saved in numeric data. If the value
is .24, that is all that is stored. It is up to you to format the values
when you want to present them to the user. If forms and reports you can use
the Format property of the control in which they will be presented to make is
display as .240. In queries or VBA you use the Format function. For
example, if you want a value to always show 3 decimal positions, it would be
Format(MyNumber, "#.000")
 
B

blendes

thanks for the help.

Klatuu said:
Neither leading nor trailing zeros are saved in numeric data. If the value
is .24, that is all that is stored. It is up to you to format the values
when you want to present them to the user. If forms and reports you can use
the Format property of the control in which they will be presented to make is
display as .240. In queries or VBA you use the Format function. For
example, if you want a value to always show 3 decimal positions, it would be
Format(MyNumber, "#.000")
 

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