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  

Total or pre calculated column



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 11:25 PM posted to microsoft.public.access.reports
charlie
external usenet poster
 
Posts: 278
Default Total or pre calculated column

Hi,

My report provides a list of supplied products, these can range from on item
to many. I have a control which calculates the amount of product ordered
plus a wastage =[Qty]+[Wastage] to give a total quantity for that particular
line.

I want to have a total of all the lines. In the Order footer I have placed
the control =Sum([ProdTotal]) ProdTotal being the name of the above control,
however when I view the report it ask for a perameter value.

Am I missing something or will the report not calculate from a previously
calculated control?

Many thanks in advance

Charlotte
  #2  
Old March 24th, 2010, 11:40 PM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Total or pre calculated column

You can't Sum() controls. You can Sum() expressions derived from the record
source of your report. Assuming Qty and Wastage are fields, try:
=Sum([Qty]+[Wastage])

--
Duane Hookom
MS Access MVP


"Charlie" wrote in message
...
Hi,

My report provides a list of supplied products, these can range from on
item
to many. I have a control which calculates the amount of product ordered
plus a wastage =[Qty]+[Wastage] to give a total quantity for that
particular
line.

I want to have a total of all the lines. In the Order footer I have
placed
the control =Sum([ProdTotal]) ProdTotal being the name of the above
control,
however when I view the report it ask for a perameter value.

Am I missing something or will the report not calculate from a previously
calculated control?

Many thanks in advance

Charlotte


  #3  
Old March 25th, 2010, 07:19 AM posted to microsoft.public.access.reports
charlie
external usenet poster
 
Posts: 278
Default Total or pre calculated column

Hi Duane,

Both the Qty and Wastage are controls, which explains why it is not working.
Is there a way to get the fields to make the calculations without using a
query or control?

Charlotte

"Duane Hookom" wrote:

You can't Sum() controls. You can Sum() expressions derived from the record
source of your report. Assuming Qty and Wastage are fields, try:
=Sum([Qty]+[Wastage])

--
Duane Hookom
MS Access MVP


"Charlie" wrote in message
...
Hi,

My report provides a list of supplied products, these can range from on
item
to many. I have a control which calculates the amount of product ordered
plus a wastage =[Qty]+[Wastage] to give a total quantity for that
particular
line.

I want to have a total of all the lines. In the Order footer I have
placed
the control =Sum([ProdTotal]) ProdTotal being the name of the above
control,
however when I view the report it ask for a perameter value.

Am I missing something or will the report not calculate from a previously
calculated control?

Many thanks in advance

Charlotte


  #4  
Old March 25th, 2010, 04:54 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Total or pre calculated column

You haven't told us anything about the control source properties of the
controls. You can typically Sum() the control source like:
=Sum([Qty] * [UnitPrice] * (1-[Discount))

--
Duane Hookom
Microsoft Access MVP


"Charlie" wrote:

Hi Duane,

Both the Qty and Wastage are controls, which explains why it is not working.
Is there a way to get the fields to make the calculations without using a
query or control?

Charlotte

"Duane Hookom" wrote:

You can't Sum() controls. You can Sum() expressions derived from the record
source of your report. Assuming Qty and Wastage are fields, try:
=Sum([Qty]+[Wastage])

--
Duane Hookom
MS Access MVP


"Charlie" wrote in message
...
Hi,

My report provides a list of supplied products, these can range from on
item
to many. I have a control which calculates the amount of product ordered
plus a wastage =[Qty]+[Wastage] to give a total quantity for that
particular
line.

I want to have a total of all the lines. In the Order footer I have
placed
the control =Sum([ProdTotal]) ProdTotal being the name of the above
control,
however when I view the report it ask for a perameter value.

Am I missing something or will the report not calculate from a previously
calculated control?

Many thanks in advance

Charlotte


  #5  
Old March 25th, 2010, 09:53 PM posted to microsoft.public.access.reports
charlie
external usenet poster
 
Posts: 278
Default Total or pre calculated column

Hi Duane,

The control which I want to get a total from is:
=(([PageCount]*[Qty])/[NumberOnSheet]*0.03)+([PageCount]*[Qty])/[NumberOnSheet]+0.5

PageCount, Qty and NumberOnSheet are all fed from a form however I need the
0.03 to be added on for wastage with the addition of .5 so it always rounds
to the highest value.

If possible I am happy to get the form to make this calculation but I am
unaware on how to get this to store in a table without the use of a query.

Thanks

Charlotte

"Duane Hookom" wrote:

You haven't told us anything about the control source properties of the
controls. You can typically Sum() the control source like:
=Sum([Qty] * [UnitPrice] * (1-[Discount))

--
Duane Hookom
Microsoft Access MVP


"Charlie" wrote:

Hi Duane,

Both the Qty and Wastage are controls, which explains why it is not working.
Is there a way to get the fields to make the calculations without using a
query or control?

Charlotte


  #6  
Old March 26th, 2010, 03:58 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Total or pre calculated column

Did you try sum the expression like:
=Sum((([PageCount]*[Qty])/[NumberOnSheet]*0.03)+([PageCount]*[Qty])/[NumberOnSheet]+0.5)

--
Duane Hookom
Microsoft Access MVP


"Charlie" wrote:

Hi Duane,

The control which I want to get a total from is:
=(([PageCount]*[Qty])/[NumberOnSheet]*0.03)+([PageCount]*[Qty])/[NumberOnSheet]+0.5

PageCount, Qty and NumberOnSheet are all fed from a form however I need the
0.03 to be added on for wastage with the addition of .5 so it always rounds
to the highest value.

If possible I am happy to get the form to make this calculation but I am
unaware on how to get this to store in a table without the use of a query.

Thanks

Charlotte

"Duane Hookom" wrote:

You haven't told us anything about the control source properties of the
controls. You can typically Sum() the control source like:
=Sum([Qty] * [UnitPrice] * (1-[Discount))

--
Duane Hookom
Microsoft Access MVP


"Charlie" wrote:

Hi Duane,

Both the Qty and Wastage are controls, which explains why it is not working.
Is there a way to get the fields to make the calculations without using a
query or control?

Charlotte


 




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:10 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.