Results 1 to 2 of 2
  1. #1
    GavZ is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    1

    Returning the last 5 records for a each unique value

    I'm new to this forum so hoping someone could help. I have a table that contains a list of sports results, and I'd like to be able to retrive the last five home results for each team, but am really strugggling how to do this as am fairly new to Access.



    The table has the following format:

    ID
    Date
    HomeTeam
    AwayTeam
    HomeTeamScore
    AwayTeamScore

    I've been able to this on a team by team basis by selecting that team in the criteria and then restricting the return to 5 after sorting desc by date. But I want to be able to seel the last 5 results for all the teams without having to individually select each one.

    Any help would be great appreciated.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,631
    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. Not returning all records
    By cbende2 in forum Queries
    Replies: 2
    Last Post: 01-07-2015, 12:07 PM
  2. Query not returning records
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 02-28-2013, 07:58 PM
  3. Query not returning records
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 11-28-2012, 09:29 AM
  4. Recordset not returning records
    By TinaCa in forum Programming
    Replies: 3
    Last Post: 08-03-2011, 09:26 AM
  5. Returning multiple records Isn't what I need
    By frobro390 in forum Queries
    Replies: 6
    Last Post: 09-21-2010, 06:24 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