Results 1 to 8 of 8
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Question Crosstab query totals row

    Hello all,



    I'm doing a little research on crosstab queries and I'm having trouble finding a solution for this...

    I would like the totals row to be automated so the user does not have to click the "Sigma" button in the ribbon.

    Click image for larger version. 

Name:	Totals.png 
Views:	10 
Size:	13.0 KB 
ID:	21064
    Or... I read something about creating another query that would give me this total row using an expression?

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Make a UNION query.
    Q1 = your crosstab query
    Q2 = a sum query of Q1
    Q3 =
    select * from Q1
    union
    select * from Q2

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Ok, I how am I creating Q2, just a simple query and add an expression for total or something?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    start new query , bring in your crosstab query
    sum the columns.
    BE SURE to add the field TOTAL. Because UNION queries MUST have the exact same field count.

  5. #5
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Wait, I don't even need step 3.

    If I open Q2, I can save it with the totals row since it's a normal query.

  6. #6
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    What is the point of the Union?

  7. #7
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I thought you wanted the crosstab data, AND the sum data in 1 sheet.

  8. #8
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Q2 is giving me that.

    If I use the query wizard to create a simple query of my already created crosstab query, I can add the totals row to the new select query and save it with the totals row.

    It's only on the crosstab queries that you can't save the totals row.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2015, 12:41 AM
  2. Create a "Totals" row for each column in crosstab
    By accessnewbie352 in forum Queries
    Replies: 13
    Last Post: 01-06-2015, 12:28 PM
  3. Replies: 2
    Last Post: 04-30-2014, 03:01 PM
  4. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  5. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 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