Results 1 to 3 of 3
  1. #1
    chaseydog is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    2

    Recurrent training completion date validation

    I知 running into a issue with a query that I could use some help on. I知 building a database in Access to capture the completion of recurrent training, typically training that needs to be completed on an annual basis. One of the actions I need to perform is to review training records, return the latest record for each employee by training module, and then verify if the completion date is within the last year.

    I created a query that returns training records for each employee, converted it to a totals query using Last as a filter on the completion date. So if an employee has tow or more records for the same course I only see the latest one. So far working as intended.



    Next I created a field that evaluates the completion date using the following IIf statement
    Code:
    Standing: IIf(([Completion Date]+[Recurrency])>Now(),"Current","Overdue")
    The statement works, but it breaks my Last filter, and I知, back to seeing all of the employees training records, not just the most recent one.

    Any ideas on how I should proceed?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    use max rather than last - last has no meaning without an order. Also Now() includes a time element, may not matter but if completion was a year ago then it won't show up today

    would help to see the full sql but I would think you need

    Standing: IIf((max([Completion Date])+[Recurrency])>Date(),"Current","Overdue")

  3. #3
    chaseydog is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    2
    @ Ajax - Thanks. I believe I have it sorted now, by using 2 queries. The first sorts down to the latest date, the second takes the results of the first and evaluates the training as current or overdue. I did incorporate your suggestions into the final revision.

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

Similar Threads

  1. Manual completion of date field
    By stebrun in forum Programming
    Replies: 7
    Last Post: 11-09-2017, 07:36 AM
  2. Replies: 3
    Last Post: 08-29-2017, 07:35 AM
  3. Replies: 1
    Last Post: 06-18-2014, 12:19 AM
  4. Received Date V.S Completion Date
    By expresso_dl in forum Queries
    Replies: 2
    Last Post: 11-21-2013, 12:12 AM
  5. Replies: 2
    Last Post: 09-29-2012, 11:22 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