Results 1 to 3 of 3
  1. #1
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    Sum of a Sum on a query

    Hi Guys wondering if you can help



    I have a table that has long list of invoice for each 'Site No' thats anchored by a Group Code and a Exp Code (there is never a situation when an invoice does not have these) I then have a Query that is a subform that is a summary of that information and looks like this:-

    Expense Description Group Code Exp Code SumOfInvoice Amount
    General Expenses A 52 £210.09
    All Grounds Maintenance A 55 £9,023.20
    All Lift Expenditure A 59 £499.20
    Refuse Collection A 64 £3,010.76
    Pest Control A 67 £1,146.00
    Electricity A 79 £1,294.59
    Insurance Premiums A 87 £238.50
    Accountant & Solicitors Fees A 91 £2,880.00
    RCS Legal Fees A 92 £924.69

    What i want to do now is to total the above

    in the footer i have =Sum([SumOfInvoice Amount])

    then in a text box out side the subform i have =[Invoices Group A Totals subform].[Form]![SumOfInvoice Amount]

    But what it actually displays is £210.09 (the first line of expense)

    I use the above calculation all the time and it works fine, but this is the first time I am doing a Sum of a query based Sum, where am I going wrong any ideas please

    Thanks

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    =[Invoices Group A Totals subform].[Form]![Footer textbox control name]

  3. #3
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    lol opps thanks

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

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