Currency is a data type that keeps accurate numbers to four decimal places.
It's not just for currency data -- it's used often for numbers that can have
up to four decimal places when you want exact numbers, not "floating point"
numbers. Makes your calculations more accurate too.
--
Ken Snell
<MS ACCESS MVP>
"Fly Boy 5" <(E-Mail Removed)> wrote in message
news:AAF80C64-8A27-4421-BEB9-(E-Mail Removed)...
>I should have said gallons purchased which would rule out the currency.
>
> Thanks,
>
> "Ken Snell (MVP)" wrote:
>
>> Change the Field Size of the Gas purchased field to Currency or to Single
>> or
>> to Double. You're trying to store a fractional number in an integer
>> field;
>> won't work.
>>
>> --
>>
>> Ken Snell
>> <MS ACCESS MVP>
>>
>>
>> "Fly Boy 5" <(E-Mail Removed)> wrote in message
>> news:B0119C6A-7CDA-4124-9E25-(E-Mail Removed)...
>> >I have two field as Long Integer. Gas purchased and miles driven.
>> >
>> > It calculates ok but rounds 10.5 gallons to 11. How can I set it up so
>> > it
>> > will calculate tenths of gallons and tenths of miles?
>> >
>> > Thanks
>>
>>
>>
|