A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old October 11th, 2008, 02:31 PM posted to microsoft.public.access.tablesdbdesign
GypsyWeaver
external usenet poster
 
Posts: 2
Default How do I stop currency field from changing cents to zeros?

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?
  #2  
Old October 11th, 2008, 03:59 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default How do I stop currency field from changing cents to zeros?

Use a Currency field. The integer types can store whole values only.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"GypsyWeaver" wrote in message
...
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?


  #3  
Old October 12th, 2008, 01:00 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default How do I stop currency field from changing cents to zeros?

On Sat, 11 Oct 2008 06:31:01 -0700, GypsyWeaver
wrote:

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).
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.