MS Access report viewing totals

Posted on 2007-10-08
Last Modified: 2013-11-28
This seems like it should be simple, but I have tried different things and can't get it to work.  I have a group of items and I want to only show the final total at the end of each group.  Each group could be one page or two pages.

For example,

Group 1
      item      price
      item       price
      item      price

Total of group      Sum of Price

Group 2

Can you help me get the total to print only once?  I have it where it prints after every item, but I would like to only see it at the end of each group.

Thank you.
Question by:kylelinkuhn
    LVL 65

    Accepted Solution

    Make sure that your 'final total' control is in the Group Footer for Item, and not in the Group Detail.

    Also, if you do not wish to display the items, hide the Group Detail by setting its Visible property to No.

    Author Comment

    I have it in a Group Footer for the value I want to total up, which in my example is price.  So do I want to create a Group Footer for the value that Group 1 is defined by or by "item" in the above example?

    Thank you for your help.
    LVL 65

    Expert Comment

    by:Jim Horn
    Groups in Access Reports (at least up to 2003) are nested, and not sequential.

    Group 0 Header
    Group 1 Header
    Detail for all:   item      price
    Group 1 Footer: Total of group      Sum of Price
    Group 0 Footer

    Author Comment

    Okay, I have it set up this way, but it still shows up after each record.  Is it because I have code written like this:
    Private Sub GroupFooter0_Format....
        Me.Total = gintTot
    End Sub

    I tried to make it Me.Total.Visible=True/False, but it is not a property for Me.Total, which is a textbox.

    Author Comment

    I used  Me.TotalNetBilled.Report.Visible = True to try to make it visible, but I got an error "You entered an expression that has an invalid reference to the property Form/Report."  Any thoughts?

    Thank you for the help.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now