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

% field x $$$ field



 
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2009, 09:08 PM posted to microsoft.public.access.forms
Aurora
external usenet poster
 
Posts: 224
Default % field x $$$ field

I am using Access 2003.
I must be having a "Senior Moment" because for some reason and I can not get
a simple formula to work correctly. I have a Sales $$$ field and a
percentage field. My formula multiples the % field with the Sales $$ field to
come up with a discount field. I formated the % field to be percent with 2
dec points. If I put a ".10" in the field, I expect a 10.00% to come up but
it does not - it comes up 0.00%. If I put in a .75 it comes up as 100% as
does 1.0 come up as 100%. What have I not formated correctly? I know I have
done this many time before without any problem. What is my problem today????

aurora
  #2  
Old January 22nd, 2009, 09:17 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default % field x $$$ field

"Aurora" wrote in message
...
I am using Access 2003.
I must be having a "Senior Moment" because for some reason and I can not
get
a simple formula to work correctly. I have a Sales $$$ field and a
percentage field. My formula multiples the % field with the Sales $$ field
to
come up with a discount field. I formated the % field to be percent with
2
dec points. If I put a ".10" in the field, I expect a 10.00% to come up
but
it does not - it comes up 0.00%. If I put in a .75 it comes up as 100% as
does 1.0 come up as 100%. What have I not formated correctly? I know I
have
done this many time before without any problem. What is my problem
today????



"Percent" is a format, not a field type; the field type determines what
type of data the field can hold. My guess is that your field's type is set
to Number/Long Integer ("Long Integer" being represented in the Field Size
property), or one of the other integer types. But these types can only hold
integers; that is, whole number -- no decimal places. You must set it
instead to Single or Double, or some other type that can hold fractional
amounts.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 




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 08:07 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.