CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Sum grups?

  1. #1
    Join Date
    Oct 2017
    Posts
    1

    Sum grups?

    Please I need help with this, is it possible?

    I have a header group with details section. I need to do sum header group with detail section but not like total for whole report.

    Example:
    NAME PRICE
    Record nr1:

    Item1 1
    Details
    Service1 2
    Service2 2

    Record nr2:

    Item1 2
    Details
    Service1 3
    Service2 3
    Service3 3

    Result should be like this:
    Record nr1:
    Item1 5
    Service1 0
    Service2 0
    Service3 0
    Record nr2:
    Item1 11
    Service1 0
    Service2 0
    Service3 0

  2. #2
    Join Date
    Aug 2007
    Posts
    179

    Re: Sum grups?

    It is difficult to understand your issue from the example. In general, you can insert a summary field into a report in either a group header/footer, or in the report header/footer. If you insert the summary into a group header/footer, it will return a sum for the group. If you insert the sum field into the report header/footer it will sum for the entire report. If this doesn't answer you question, please provide a better example.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured