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  

percentage calculated shows in form, but not in report



 
 
Thread Tools Display Modes
  #1  
Old October 19th, 2009, 01:36 PM posted to microsoft.public.access.gettingstarted
Driftwood
external usenet poster
 
Posts: 23
Default percentage calculated shows in form, but not in report

Hello,
Being new to Access, we are trying to make a field in the Report show a
calculation (defects/rejects).
This was usually calculated by the user, then typed into the database.
We would like to make this an automatic calculation.
After a few days of trying, we have got as far as to have the percentage
show up correctly in the Form (2.2%for the one instance we are working with),
but in the report, that is printed out and emailed, we still get 0% in the
box stating "% Rejected"
we click on the "properties"
Format : Percentage
Data: Control source : =[Defect Qty/Reject Qty]*100

We have gone through many iterations of scenarios and the results varied
from diffferent error types to inaccurate results.
We know that the 2.2% shown in the Form is accurate, but how do we get the
Report to show the same number?
Your help is appreciated
Thanks
Driftwood
  #2  
Old October 19th, 2009, 02:20 PM posted to microsoft.public.access.gettingstarted
RonaldoOneNil
external usenet poster
 
Posts: 345
Default percentage calculated shows in form, but not in report

I assume you have 2 fields Defect Qty & Reject Qty, in which case your
control source should be as below
=[Defect Qty]/[Reject Qty]*100

"Driftwood" wrote:

Hello,
Being new to Access, we are trying to make a field in the Report show a
calculation (defects/rejects).
This was usually calculated by the user, then typed into the database.
We would like to make this an automatic calculation.
After a few days of trying, we have got as far as to have the percentage
show up correctly in the Form (2.2%for the one instance we are working with),
but in the report, that is printed out and emailed, we still get 0% in the
box stating "% Rejected"
we click on the "properties"
Format : Percentage
Data: Control source : =[Defect Qty/Reject Qty]*100

We have gone through many iterations of scenarios and the results varied
from diffferent error types to inaccurate results.
We know that the 2.2% shown in the Form is accurate, but how do we get the
Report to show the same number?
Your help is appreciated
Thanks
Driftwood

  #3  
Old October 20th, 2009, 01:51 AM posted to microsoft.public.access.gettingstarted
KenSheridan via AccessMonster.com
external usenet poster
 
Posts: 1,610
Default percentage calculated shows in form, but not in report

If, as the "% Rejected" label suggests, it’s the reject quantity as a
percentage of the defect quantity that you want, you have the expression the
wrong way round. It would be:

=[Reject Qty]/[DefectQty]

This will give the value as a decimal fraction, e.g. 0.022

Formatting this as Percent will display this as 2.2%, so you don't need to
multiply by 100.

Ken Sheridan
Stafford, England

Driftwood wrote:
Hello,
Being new to Access, we are trying to make a field in the Report show a
calculation (defects/rejects).
This was usually calculated by the user, then typed into the database.
We would like to make this an automatic calculation.
After a few days of trying, we have got as far as to have the percentage
show up correctly in the Form (2.2%for the one instance we are working with),
but in the report, that is printed out and emailed, we still get 0% in the
box stating "% Rejected"
we click on the "properties"
Format : Percentage
Data: Control source : =[Defect Qty/Reject Qty]*100

We have gone through many iterations of scenarios and the results varied
from diffferent error types to inaccurate results.
We know that the 2.2% shown in the Form is accurate, but how do we get the
Report to show the same number?
Your help is appreciated
Thanks
Driftwood


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/200910/1

 




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 09:48 AM.


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