SubReport - Passing totals back to the main report

  • I have a main report with one subreport embeded.   Is there a way to pass the total calculated in the subreport back to the main report so that I could produce a grand total?

  • This was removed by the editor as SPAM

  • I would try either a seperate dataset that calculates the same values as the subreport or check the reportItems collection. You may be able to refer to the text box in the subreport and get the value. I've only used the reportitems collection in the main report so I don't know if this will work.

     

    Stuart

  • Yes.

    The down and dirty way would be to create a "Grand Total" subreport field and using a function, reference the total field from your subreport and add the total field from your main report.

    Another way to do this would be in the custom code section.  I'll go look for some code examples in my reports...

     

     

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply