Results 1 to 2 of 2
  1. #1
    covesounds is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    1

    Search for most recent

    Hi


    Sorry if this has been covered elsewhere but I couldn't find anything.

    I'm running a training department and have a table which I update everytime I run a course detailing which member of staff I trained, the course they sat, and the date. I need to create a form/report which allows me to select a member of staff and will pull out the last date that person sat each training course.

    Any help much appreciated.


    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    If you have a form with a combobox, and the rowsource for the combo is the staffMemberId, and Name.
    And if your training table includes the StaffMemberId along with CourseName and TrainingDate.

    If you select the StaffMemberName from the combo, and use the associated StaffMemberId, you could run a query along these lines to get the latest Training for the selected StaffMember

    [untested -- air code]
    Select StaffMemberName, CourseName, Max(TrainingDate) from tblTraining
    Where StaffMemberId = Forms!YourFormName.yourComboBox.value
    GROUP BY StaffMemberName, CourseName

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

Similar Threads

  1. Choose the row with the MOST RECENT date
    By taimysho0 in forum Queries
    Replies: 1
    Last Post: 05-14-2012, 02:35 PM
  2. Pulling two most recent values (MAX)
    By AquaLady42 in forum Access
    Replies: 4
    Last Post: 07-22-2011, 08:04 AM
  3. Get Recent Record without Id or date
    By pyog in forum Queries
    Replies: 5
    Last Post: 04-19-2011, 09:43 AM
  4. Displaying Most Recent Record
    By viper in forum Forms
    Replies: 7
    Last Post: 11-16-2010, 10:06 AM
  5. most recent entries
    By tom4038 in forum Queries
    Replies: 0
    Last Post: 09-14-2009, 04:41 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