Using values from a subreport in the main report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mose Mbugua
    New Member
    • Aug 2014
    • 17

    Using values from a subreport in the main report

    I have made a report from a query and added a sub report created from a different query. The main query has a calculated field so is the sub report. i want to subtract the totals in the sub report from the totals in the main report. Is there a way to doing this?
  • jforbes
    Recognized Expert Top Contributor
    • Aug 2014
    • 1107

    #2
    Usually the easiest way to do this is to include the calculation that is being done on the SubReport in your Main Query. You can also perform the Subtraction as part of the Main Query.

    I tend to perform all my Report calculations in Queries, then use the Report for formatting of information only. It makes things easier in the long run when the calculations and reporting are segregated.

    Comment

    • twinnyfo
      Recognized Expert Moderator Specialist
      • Nov 2011
      • 3653

      #3
      I am with J.... Calculate in your queries, format in your reports.

      Comment

      Working...