Results 1 to 4 of 4
  1. #1
    Lynghaug is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2

    Find a record with the highest value

    Id (AutoNumber) User Item Registration_Number
    1 Tom This 006
    2 Tom That 001
    3 Tom Other 003
    4 Tom Other 005
    5 Tom This 004
    6 Tom This 002
    7 Bob That 007

    What I'd like to retrieve is the latest Registration_Number for each Item that is registrated on Tom.
    I got 450 users, so Users can't be a static value.



    Pleace help.

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Have you tried a aggregate select query with
    grouping on
    user and item
    and
    the max of Registration_Number

    Thanks

  3. #3
    Lynghaug is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2
    Thanks!
    Worked like a charm.
    I don't know why I didn't try that earlier. The easiest way.
    I thought too complicated.

    Again. Thanks.

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Glad you got it working.
    If I had physically banged my head, as many times as I had overlooked a simple solution, I would have been dead by now.
    I still do.

    Thanks

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

Similar Threads

  1. Find highest 4 hours out of 24
    By nvrwrkn in forum Queries
    Replies: 6
    Last Post: 06-15-2012, 05:22 AM
  2. Best way to find a record?
    By Drak in forum Programming
    Replies: 3
    Last Post: 01-31-2012, 10:40 PM
  3. Find 2nd or 3rd highest record with a query
    By K Roger in forum Queries
    Replies: 1
    Last Post: 12-19-2011, 11:27 PM
  4. query to find the highest value in a field
    By jhjarvie in forum Queries
    Replies: 0
    Last Post: 09-02-2008, 02:27 PM
  5. How to Find a Record
    By lschlitt in forum Programming
    Replies: 2
    Last Post: 09-09-2006, 06:24 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