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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Show percentage sign in results?



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2007, 06:24 PM posted to microsoft.public.access.reports
TKM
external usenet poster
 
Posts: 289
Default Show percentage sign in results?

I am linked to a SQL DB. It is set up as a Numbert datatype and double field
size. I need to get my report to show a percentage with one decimal to the
left. I have the field on the report set up as a general number auto decimal
places. How come it does not show the % on the report but it does show the
correct placement of the decimal?
  #2  
Old July 16th, 2007, 08:32 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Show percentage sign in results?

TKM wrote:

I am linked to a SQL DB. It is set up as a Numbert datatype and double field
size. I need to get my report to show a percentage with one decimal to the
left. I have the field on the report set up as a general number auto decimal
places. How come it does not show the % on the report but it does show the
correct placement of the decimal?



Percent is not a field type so you need to tell Access that
you want the % added. If your number is .25 for 25%, then
set the text box's Format propert to
0%
If your number is 25 for 25% then set the Format property to
0\%

--
Marsh
MVP [MS Access]
  #3  
Old July 16th, 2007, 10:52 PM posted to microsoft.public.access.reports
TKM
external usenet poster
 
Posts: 289
Default Show percentage sign in results?

Marshall,

If I never know how many digits there will be but do know it will have one
decimal to the left. How would I set that in the format section. Such as
0.0626%

Thank you for your help

"Marshall Barton" wrote:

TKM wrote:

I am linked to a SQL DB. It is set up as a Numbert datatype and double field
size. I need to get my report to show a percentage with one decimal to the
left. I have the field on the report set up as a general number auto decimal
places. How come it does not show the % on the report but it does show the
correct placement of the decimal?



Percent is not a field type so you need to tell Access that
you want the % added. If your number is .25 for 25%, then
set the text box's Format propert to
0%
If your number is 25 for 25% then set the Format property to
0\%

--
Marsh
MVP [MS Access]

  #4  
Old July 17th, 2007, 12:29 AM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Show percentage sign in results?

If you might have a lot of decimal places to the right, then
use:
0.########\%
or
0.########%
depending on what your number represents.
--
Marsh
MVP [MS Access]


TKM wrote:
If I never know how many digits there will be but do know it will have one
decimal to the left. How would I set that in the format section. Such as
0.0626%


"Marshall Barton" wrote:
TKM wrote:
I am linked to a SQL DB. It is set up as a Numbert datatype and double field
size. I need to get my report to show a percentage with one decimal to the
left. I have the field on the report set up as a general number auto decimal
places. How come it does not show the % on the report but it does show the
correct placement of the decimal?



Percent is not a field type so you need to tell Access that
you want the % added. If your number is .25 for 25%, then
set the text box's Format propert to
0%
If your number is 25 for 25% then set the Format property to
0\%

 




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 05:41 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.