Results 1 to 3 of 3
  1. #1
    Datamulcher is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2016
    Location
    Victoria, Canada
    Posts
    26

    Post How to calculate the time a user spent on a record from the audittrail?

    I am supervising a team of Coders performing data validations. I have a productivity database which calculates quantitative prod data, now I am looking to get it to calculate the amount of time a user spends on a case. I am thinking the way to do this would be a difference calculation using the audit trail, - avg("n amount of time spent per record").



    How do I structure this?? I am still learning and I do not know how to define, from a query based on the audit trail, the idea of this record / next record. From there I would need to apply the difference calculation.

    As an illustration:

    Edits made as per audit trail by user X:

    10:00am RecordID abc123
    10:02am RecordID abc123
    10:05am RecordID abc123

    10:10am RecordID xxx000
    10:00am RecordID xxx000

    So I need some way to calculate "if RecordID <> previous RecordID then calculate difference in date/time between First of [RecordID]-abc123 and last of [RecordID]-abc123."

    Currently the database is calculating a number of other variables, as shown below. I want to get some insight into quality, along the lines of "case with more edits performed in less time than the average overall = possibly more skilled user." To do this I need that difference calculation but have no idea how to do this, the calculation I understand but how to reference RecordID<>Previous RecordID and then apply the calculation- that's where I am confused.

    Click image for larger version. 

Name:	prod.PNG 
Views:	7 
Size:	34.1 KB 
ID:	27703

    Thank you for your help, you guys are a great resource!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    youd need something to capture the time when the user begins editing, then another on Save record.
    do you have this in place?

  3. #3
    Datamulcher is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2016
    Location
    Victoria, Canada
    Posts
    26
    Hey Ranman, I have a "StartedWorking" query which pulls the First audit trail record for the User for the selected date (default of "Between date() and date()+1") - but not the First of the [RecordID]...
    (Actually the time range is defined by a form control, so it is actually "Between [Forms]![frmProductivity]![TextDate] And DateAdd("d",1,[Forms]![frmProductivity]![TextDate])")

    But - there are no "saves", the data validators are only performing EDITS so the equivalent of "save" would be a codingstatus = 2 (completed)
    I could use time when the record is first accessed to the time that the codingstatus is set to 2 for that record. This still requires the record->nextRecord definition.

    What would be the most simple way to find: First of [RecordID] within a set of [RecordID]s?
    Then I could calculate the time difference between First of [RecordID] -> [codingstatus].[RecordID] = 2

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

Similar Threads

  1. Replies: 1
    Last Post: 01-29-2015, 08:49 PM
  2. AuditTrail not working on Sub Forms
    By rebeccab in forum Access
    Replies: 3
    Last Post: 12-23-2014, 10:09 AM
  3. Record Time Spent Task
    By rosscortb in forum Access
    Replies: 1
    Last Post: 07-09-2014, 07:55 AM
  4. Replies: 42
    Last Post: 03-01-2013, 06:58 AM
  5. Time Spent on Activities Report
    By avarusbrightfyre in forum Reports
    Replies: 1
    Last Post: 10-14-2010, 05:02 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