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

    Staff Training Query

    I have a DB that is tracking staff training. What I'm trying to do is view a report that shows each staff completed training in a spreadsheet type view. Each class needs to be completed within the calendar year.

    My Table Structures currently look like

    tblStaff
    StaffID
    FirstName
    LastName

    tblClasses - Class Names
    ClassID
    ClassName

    tblClassSessions - Records the Dates were scheduling training
    SessionID
    ClassID - FK
    ClassDate



    tblStaffClasses
    SignupID
    StaffID - FK
    ClassID - FK

    For Example, I want the query to show

    Staff Name Training Class 1 Training Class 2 etc
    John Doe Completion Date Completion Date
    John Smith Completion Date Completion Date

    I'm basing my query off the tblStaffClasses table and currently using multiple class date fields with a criteria limiting it to the specific classID for each column

    Having trouble with a couple things, first off I need to query to select the most recent completion date. Meaning if there are multiple classes (for multiple years) It needs to select only the most recent one.

    Also I'm having trouble with displaying the values if there is no records for a class being taken so some way for the query to ignore null values.

    Thanks for the help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Retrieving records with the most recent date requires subquery or domain aggregate function (DLookup, DMax, etc).
    Try the Top N example in http://allenbrowne.com/subquery-01.html

    Don't understand last issue. If there are no records then what is there to display? Provide the SQL statement. Sample source data would be helpful.
    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: 1
    Last Post: 09-24-2012, 07:09 PM
  2. staff training data base, training
    By SAJAN in forum Forms
    Replies: 1
    Last Post: 09-22-2012, 05:09 AM
  3. Training Database Query Help
    By cjb1317 in forum Queries
    Replies: 6
    Last Post: 10-05-2011, 09:43 AM
  4. Record of staff transfers
    By coffeeking in forum Access
    Replies: 1
    Last Post: 11-16-2010, 11:17 PM
  5. Replies: 0
    Last Post: 07-19-2010, 10:29 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