How do I stop currency field from changing cents to zeros?

G

GypsyWeaver

I have an "amt paid" number field set to long integer, currency, 2 decimals.
When I enter an amount (like 49.55) it defaults the cents .55 to zeros 49.00.
I have other fields that are identical and do not change my cents when
entered. Is there a way to fix this glitch in Access 2007?
 
J

John W. Vinson

I have an "amt paid" number field set to long integer, currency, 2 decimals.
When I enter an amount (like 49.55) it defaults the cents .55 to zeros 49.00.
I have other fields that are identical and do not change my cents when
entered. Is there a way to fix this glitch in Access 2007?

To fix it, don't use a Long Integer datatype. An Integer is by definition a
whole number.

Use a Currency datatype instead of any sort of Number. That's what it's for; a
Currency value is a huge scaled integer with four decimal places (no more, no
fewer) and a range into the trillions (almost enough to store the final cost
of the federal bailout, if we're lucky).
 

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