Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2015
    Posts
    4

    Query for most recent date

    I have a single table which stores entries for Fitness Test scores. Each new test is entered with all scores, a date, a TestID and other fields. If someone takes multiple tests, they will have multiple entries in the table (date and testID will be unique (except many people will have the same date)). How do I get the most recent test for each individual and get all other fields reported as well? I have looked through many forums and all solutions return only the name (grouped) and the date (filtered using max function).



    Speak slowly, Im a noob and know nothing about SQL. Thanks.

    Ben

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Here is an example of what you want to achieve:

    http://www.rogersaccesslibrary.com/forum/topic326.html

  3. #3
    Join Date
    Dec 2015
    Posts
    4
    Works great, Thanks!

    Now, my boss wants to know if I can show a change between the last two fitness tests. Is it possible to (in a new query) find the second most recent test. I can set up the relationships and do the calculations to determine the change, i just need to generate a recordset that shows the second most recent test scores. Possible?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    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: 22
    Last Post: 09-23-2015, 03:47 PM
  2. Replies: 3
    Last Post: 03-11-2014, 07:32 PM
  3. Most recent Date query
    By SmartestIdiot in forum Queries
    Replies: 1
    Last Post: 01-11-2014, 07:56 AM
  4. Query Help Returning Most Recent Date's Value
    By cperry88 in forum Queries
    Replies: 1
    Last Post: 01-08-2014, 03:03 PM
  5. Replies: 4
    Last Post: 05-04-2010, 03:33 PM

Tags for this Thread

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