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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

% and numbers



 
 
Thread Tools Display Modes
  #1  
Old January 11th, 2009, 11:56 AM posted to microsoft.public.access.gettingstarted
JB
external usenet poster
 
Posts: 103
Default % and numbers

I've got a column in a table that I want to make a percent value.
I enter 12.5 and it returns 12.000.00 !!!!!!!!!!!!!!
so it's calculating it for me I get it. I just want the figure.
So I make it a NUMBER, with 2 decimal places.
I enter 12.5 and it returns 12 !!??
I change it to auto decimal places
It returns 12
I change it to 1 decimal places., it returns 12.
Please, what am I missing here?
Jen

  #2  
Old January 11th, 2009, 12:02 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default % and numbers

When you set a field in a table as Number, the default data type is Long
Integer, which cannot store any fractional part.

Take a look at the "Field Size" property in the bottom left of the design
interface. To store fractional parts, you need to use one of Single, Double
or Decimal.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"JB" somehow@somewhere wrote in message
...
I've got a column in a table that I want to make a percent value.
I enter 12.5 and it returns 12.000.00 !!!!!!!!!!!!!!
so it's calculating it for me I get it. I just want the figure.
So I make it a NUMBER, with 2 decimal places.
I enter 12.5 and it returns 12 !!??
I change it to auto decimal places
It returns 12
I change it to 1 decimal places., it returns 12.
Please, what am I missing here?
Jen



  #3  
Old January 11th, 2009, 12:17 PM posted to microsoft.public.access.gettingstarted
JB
external usenet poster
 
Posts: 103
Default % and numbers

wow that was quick.
That did it. Thank you !
Jen

"Douglas J. Steele" wrote in message
...
When you set a field in a table as Number, the default data type is Long
Integer, which cannot store any fractional part.

Take a look at the "Field Size" property in the bottom left of the design
interface. To store fractional parts, you need to use one of Single,
Double or Decimal.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"JB" somehow@somewhere wrote in message
...
I've got a column in a table that I want to make a percent value.
I enter 12.5 and it returns 12.000.00 !!!!!!!!!!!!!!
so it's calculating it for me I get it. I just want the figure.
So I make it a NUMBER, with 2 decimal places.
I enter 12.5 and it returns 12 !!??
I change it to auto decimal places
It returns 12
I change it to 1 decimal places., it returns 12.
Please, what am I missing here?
Jen



 




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 11:55 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.