Combining Calculations from subreport

D

deiopajw

I have a main report: Rpt_Main
I have a subreport nestled in this main report called subrpt_Details

In Rpt_Main there is an unbound text box [Total Sales] with a formula in the
Control Source:
=Sum([SalesPrice]*0.85) in the report footer.

The subreport has an unbound text box [AncTotal] with a formula:
=Sum([AncTotalPrice])

I want to be able to create a seperate field in the Rpt_Main footer that
adds the two field formulas:
ie =Sum([SalesPrice]*0.85)+Sum([AncTotalPrice])
I have tried creating a new query that contains the queries of the 2
respective reports but the figures didn't work out.
any suggestions?
thanks
 
D

Duane Hookom

Add a text box to the main report section that contains the subreport. Set
these properties:
Name: txtAncTotalRunSum
Control Source: =subrpt_Details.Report.AncTotal
Running Sum: Over All
Then your main report footer, use:
Control Source: =Sum([SalesPrice]*0.85)+txtAncTotalRunSum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top