Results 1 to 3 of 3
  1. #1
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130

    Calculating Summation in a report based off of a query


    Hello,
    I currently have a report that is showing the sum of two different columns that were joined from two different tables. I am trying to get a third column that says the total (total received - total consumed) for each record on the report. I currently have:
    Code:
    =[Sum(SumOfReceivedQuantity)-Sum(SumOfConsumedQuantity)]
    in the control source of a textbox that is in the totals column. When I go to open the report, a box comes up asking me to enter the value. I believe this should work how I have it set up. Any help would be appreciated. Thanks!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    not sure I fully understand....but do I see brackets around the formula rather than parenthesis?

  3. #3
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    I figured it out. I ended up using the expression builder within the control source, which resulted in:
    Code:
    =[SumOfReceivedQuantity]-[SumOfConsumedQuantity]

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

Similar Threads

  1. Calculating from a query based subform
    By keiath in forum Forms
    Replies: 1
    Last Post: 10-09-2013, 02:59 AM
  2. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  3. Summation of Types (based on text criteria)
    By justinwright in forum Reports
    Replies: 4
    Last Post: 01-26-2011, 01:07 AM
  4. Calculating values based on Combobox value
    By BrianFawcett in forum Programming
    Replies: 1
    Last Post: 05-06-2010, 01:26 AM
  5. Incorrect summation in report footer
    By wizard_chef in forum Reports
    Replies: 2
    Last Post: 12-07-2009, 06:53 AM

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