Results 1 to 4 of 4
  1. #1
    George is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2012
    Posts
    295

    Summing calculated fields

    Good Day All.



    Can anyone instruct how to sum a calculated field?

    My records are form a query and group on a field "Student". I added a calculated field "text2"in the details section; now I want to sum up the results of all the records for that field.

    Under the Student Footer Section a placed another calculated field "text3" under the "text2". Using the expression builder I entered: =sum([text2]). This generated an error message.

    Any help would be appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can move the calculation to the source query or sum the calculation:

    =Sum(Quantity * Price)
    Last edited by pbaldy; 06-03-2016 at 08:21 AM. Reason: fix autocorrect goof
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    George is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2012
    Posts
    295
    Good Daypbaldy. Thanks again. It worked by moving the calculations to the source query. However are you also saying that it could have worked without going to the source query?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Yes, using a textbox with a control source like I posted, summing the calculation.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  2. Summing DateDiff Fields
    By 1Christmas2 in forum Queries
    Replies: 3
    Last Post: 09-29-2013, 01:57 PM
  3. Summing Fields between tables
    By marrone12 in forum Queries
    Replies: 9
    Last Post: 09-16-2011, 12:37 PM
  4. Summing Calculated Fields
    By Zoran in forum Queries
    Replies: 1
    Last Post: 03-31-2010, 01:59 PM
  5. Replies: 0
    Last Post: 01-24-2009, 11:40 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