Unwanted automatic rounding of data

B

BobG

1. Using Access 2000 and 2002
2. MyField (RunningDistance, in miles)
3. Using long integers as data type

Desired result: I want to reflect my actual daily mileage
up to a tenth of a mile (in tables, queries, forms, and
reports).

Example: 7.7 miles

Unexpected result: The mileage automatically rounds up or
down to the nearest whole number.

Example: 7.7 miles rounds to 8. The format looks like x.00
but the entry automatically reflects 8.00.

Ideas? Thank you.
 
P

Pavel Romashkin

Long integer will not store any decimal digits - it is an Integer.
Use the Double or Single numeric data type to store distances.

Pavel
 

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