Results 1 to 2 of 2
  1. #1
    herolind is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2011
    Posts
    1

    Subreport grouping subtotals

    I have a main report that has two subreports in it. Both of the subreports are grouped and for each group i have produced subtotals. in my main report I want to show the difference between the subtotals produced in subpreport 1 and subreport 2. I don't know if this is possible anyway if anyone can help me please.!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    It is possible.

    1 approach: In the OnFormat event of section where those subreport exist you would do the math and insert it into an unbound control. Something like:
    me.TotalName = me.Subreport1.Report!Total1 - me.Subreport2.Report!Total2

    2nd approach: Do the math in a separate query(s) and then make a seperate small subreport of its total - and insert this new subreport into your report.

    Hope it helps.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. supress subtotals code
    By sandyg in forum Reports
    Replies: 1
    Last Post: 02-16-2011, 11:38 PM
  2. Replies: 0
    Last Post: 11-17-2010, 01:21 AM
  3. Subtotals within a query
    By mulefeathers in forum Queries
    Replies: 2
    Last Post: 06-07-2010, 01:02 PM
  4. suppress subtotals when only 1 record
    By schristy in forum Reports
    Replies: 3
    Last Post: 02-15-2010, 10:00 AM
  5. Replies: 0
    Last Post: 08-07-2008, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums