Results 1 to 2 of 2
  1. #1
    deluga.69 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    6

    Newbie trying to Return Top 5 for Each in a Group

    And I really mean Newbie. I know nothing about programming. I've searched online for a solution, but I can't seem to translate any of the examples I've found into something that would work for me.

    I need to return the top 5 releases for each distributor. I'm trying to get this from a query - qry_MS_Detail_All_Titles - with the following fields:

    distributor_display_name, picture_name, release_amount, distributor_id, and release_id

    I'm sure I've seen the solution, but being so new to this it could smack me upside the head and I wouldn't know it.



    I don't really understand the syntax rules properly, so I think that may be my biggest challenge. I am hoping to see the result with my names; perhaps that will help it click for me.

    Any suggestions would be helpful
    Thanks,
    Deluga

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Have you seen this resource http://allenbrowne.com/subquery-01.html#TopN

    As Allen emphasizes, must include a unique ID field (primary key).
    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. query group by over another group by?
    By gap in forum Queries
    Replies: 2
    Last Post: 07-04-2011, 12:59 AM
  2. I need (newbie) help, please!
    By Over in forum Access
    Replies: 2
    Last Post: 02-05-2011, 10:14 AM
  3. Replies: 5
    Last Post: 11-29-2010, 08:16 AM
  4. Help a newbie
    By g8rnc in forum Access
    Replies: 1
    Last Post: 06-09-2010, 12:58 PM
  5. columns for group detail but not group header?
    By Coolpapabell in forum Reports
    Replies: 0
    Last Post: 08-21-2009, 08:53 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