Results 1 to 2 of 2
  1. #1
    BRZ-Ryan is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    187

    Row of averages or totals at the bottom of a query


    I am using the below query, I'd like the query to have a row at the bottom to display the totals and\or averages for each column.

    Code:
    SELECT Col1, Col2
    FROM tblTest
    WHERE (TimePeriod=#Jan 2015#)
    ORDER BY TimePeriod;
    ie.
    COL1 COL2
    43 1
    22 22
    12 43
    77 (total) 66 (total)

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you cant do both, thats a report.

    but for a query, you can have Q1 to show the data
    Q2 to do sum and avg of Q1
    Q3 as a union query of: Q1 union Q2.

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

Similar Threads

  1. How to display totals at bottom of query or report
    By Access_Novice in forum Access
    Replies: 1
    Last Post: 09-12-2014, 12:58 AM
  2. Replies: 3
    Last Post: 11-26-2012, 01:24 PM
  3. One MS Access Query - Multiple Averages?
    By ajcke in forum Queries
    Replies: 9
    Last Post: 05-09-2012, 07:16 AM
  4. Query to show averages by month
    By DDEB in forum Queries
    Replies: 3
    Last Post: 05-08-2012, 05:11 PM
  5. Totals showing across bottom of Datasheet view
    By Laurie B. in forum Access
    Replies: 8
    Last Post: 09-14-2011, 01:47 PM

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