Results 1 to 3 of 3
  1. #1
    JonLee is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Location
    Seattle WA
    Posts
    2

    Top 3 Records for Multiple Groups (District)

    This is my first post in the forum, so please forgive me if I dont use proper terminology. Also, I am attempting to do this in desgin view, as, for now, I can read SQL, but dont have too much experience writing it.



    I have a table with the following structure.

    Region....District....WH....Product....Aged Inventory $

    There are thousands of records, unique by the Prod WH combination, across 5 districts. What I want is to pull the (highest) Top 3 Aged Inv$ values (Prod WH) for Each district.

    Any thoughts?

    Thanks,

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You will probably have to write the query statement in SQL View.

    Review:
    http://rickosborne.org/blog/2008/01/...grouped-query/
    Not exactly PC but gets the point across.

    Also, http://allenbrowne.com/subquery-01.html
    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.

  3. #3
    JonLee is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Location
    Seattle WA
    Posts
    2
    Thanks for the repsonse! I am getting better at reading SQL, so I will attempt to tailor this to my query. It looks to be exactly what I am looking for. If it works I post a solution.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-05-2012, 12:04 PM
  2. Query with several groups
    By jvlajcic in forum Queries
    Replies: 1
    Last Post: 12-19-2011, 10:25 AM
  3. Sum by groups
    By Lorlai in forum Access
    Replies: 1
    Last Post: 07-21-2011, 11:42 AM
  4. Replies: 1
    Last Post: 12-10-2009, 08:41 PM
  5. using date for groups
    By antcox2004 in forum Reports
    Replies: 3
    Last Post: 01-28-2006, 07:44 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