2 decimal places

M

Matthew

I have a field that is a number type, size single, format general number,
and 2 decimal places.

However, it will let me enter data with 7 decimal places.

What's up?

Matthew
 
K

Ken Snell

ACCESS won't prohibit the entry of more decimal places when you set the
decimal places to 2...that simply controls the display of the number, not
what is stored. And the display will only limit to 2 decimal places if you
use Fixed instead of General Number as the format.

If you want to limit the entry of numbers to be no more than 2 decimal
places, you may need to use an input mask or some type of validation rule.
 
F

fredg

Matthew said:
I have a field that is a number type, size single, format general number,
and 2 decimal places.

However, it will let me enter data with 7 decimal places.

What's up?

Matthew

Mathew,
Set the Format to Fixed, not General.
Be aware that this only effects how the data is displayed, not how it is
stored. If you have entered a number with more than the 2 decimals, that
is the number Access will use in calculations, not the 2 decimal one
displayed.
 

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