Results 1 to 2 of 2
  1. #1
    Madmartigan is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jun 2013
    Posts
    36

    Select Query - Top Values Plus "All Else"

    I have two fields in a table that I'm querying. Customer and dollar amt. I am trying to run a top 10 query (sum of dollar amt sorted descending) by customer which I can do fine, but I'd like an 11th row that basically sums all remaining customers not present in the top 10 (so that the sum of my 11 records equals the sum of all records on my table). I'd like for the 11th row Customer value to display "All Else" if possible. In another job I had a co-worker who accomplished this but I have no clue how he did it.



    Any help is appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Possibly your former co-worker did one query for the top10, another query for everything not in the top 10, then combined the two with UNION query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2013, 01:20 PM
  2. Replies: 3
    Last Post: 04-03-2013, 10:39 PM
  3. Replies: 5
    Last Post: 03-22-2013, 01:11 PM
  4. Replies: 1
    Last Post: 10-08-2012, 09:01 AM
  5. ComboBox "Select" and "DLookUp"
    By witooldas in forum Forms
    Replies: 0
    Last Post: 03-23-2011, 03:31 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