Question : Subtotaling Group Calculated Fields

Hello,

I have a report with several groups in it.  My details sections contains the following information:
 Volume    Rate          Charge
[Volume] [Rate]  ([Volume]*[Rate])

Charge is a textbox (textbox11) in which the two fields Volume and Rate are multiplied.

In the footer of the details section I need a subtotal of all the charges for that group.  Since Charge is not an actual database field, I am unsure how to do this.  I have tried setting the control source for the subtotal = Sum(textbox11) but that does not work.

Does anyone have an idea how to fix this?

Thanks for any help,
-Torrwin

Answer : Subtotaling Group Calculated Fields

Have you tried calculating Charge in the reports recordsource? For example change the reports table/query to:

SELECT *, [Volume] * [Rate] AS Charge FROM tblYourTable;

Then you could just change textbox11 to:
[Charge]

Then to calculate the total you could use:
=Sum([Charge])
Random Solutions  
 
programming4us programming4us