Number Field Automatically Rounds in Error

  • Thread starter Thread starter dbain30
  • Start date Start date
D

dbain30

I have a table where at the end of the process, after the item is
outstanding for a period of time, an amount must be entered into one of
the fields.

I originally set this up as follows:
Field Name: Premium Amount
Data Type: Number
Field Size: Long Integer
Format: ##,###.##
Decimal: 2 Places

The problem that I'm having is that it's rounding every number to the
nearest dollar and I really need for the cents to be accurate as well.

I've changed the properties to various options and so far it comes back
with the same results.

I'm using Access 97.

Any suggestions would be appreciated! This seems so simple and for
whatever reason I'm frustrated at trying to find an answer.
 
A Long Integer cannot store decimal points: that's one of the
characteristics of integers.

Since you're dealing with money, you're best off changing the Date Type to
Currency. Otherwise, you need to change the Field Size to Single or Double.
 
dbain30 said:
I have a table where at the end of the process, after the item is
outstanding for a period of time, an amount must be entered into one
of the fields.

I originally set this up as follows:
Field Name: Premium Amount
Data Type: Number
Field Size: Long Integer

Bingo! Integer's are .. well they are integers and integers are whole
numbers no decimals. Try to change to single or double number types.
 

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

Back
Top