Results 1 to 6 of 6
  1. #1
    asherbear is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    13

    Query latest record

    I have a query but I want only the last entry for a certain field (The field is tied to a patient and it may be entered a number of times). I want the data from the last time it was entered.

    I figured there must be a last function that I can use... Thanks for any help.....



    Asher..

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sounds like you want this type of thing:

    http://www.baldyweb.com/LastValue.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    asherbear is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    13
    looks ok. Can it be done in QBE or do I need SQL??

    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    They can be done in the QBE. For the first, you'd have to click on the "E" in the toolbar that says "Totals". Then you'd group by the key field and max the date field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    asherbear is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    13
    Thanks. I think I got it.. Another winner!!!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Excellent, glad to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 06-29-2010, 01:24 PM
  2. Query for latest date? what am I doing wrong?
    By Overdive in forum Queries
    Replies: 1
    Last Post: 12-18-2009, 06:04 AM
  3. Query to find latest date
    By Lockrin in forum Access
    Replies: 2
    Last Post: 12-16-2009, 10:00 AM
  4. Latest Date Records
    By Rick West in forum Queries
    Replies: 1
    Last Post: 09-25-2009, 11:16 AM
  5. Replies: 2
    Last Post: 12-09-2005, 01:58 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