Results 1 to 7 of 7
  1. #1
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93

    Arrow Time as min:sec

    What I have:
    tblTraining
    -CompletionTimeMin
    -CompletionTimeSec



    What I am trying to do:
    I have to calculate a score based on predetrimined criteria. An employee has to complete a task in a specified amount of time to get 100%.

    The problem:
    Right now I have the minutes and seconds split into two fields. Calcualtions are based on so many points per whole minute and how many points per second. Points are assesed in 10 second intervals. I think it would make more sense to have one field for time with min:sec, but I am not sure how to go about it programmatically.

    For example:
    Employee A completes the test in 20 min 9 sec based on a task that whose predetermined cutoff is 20 min. Employee A's score should be 99.

    Any help you could give on this subject would be greatly appreciated. Thank you in advance for your time and help. Have a nice day.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    one filed with only seconds is much more simple.
    20min 9 sec = 1209 sec

  3. #3
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    I agree, but I need to make it as simple as I can for the clerks to enter the time. I can combine the min and sec fields in a query to run the calculation, but I am wondering how to complete the calcultion if I had only one field for time (min:sec).

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    if you want min:sec, I prefer it in two fields. it's much easier than put in one field.

    but if you want to put in one field in unit of second. the update query is:
    update table1 set [seconds]=[min]*60+[sec]

  5. #5
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    Ok. Thank you. I agree with havein it in two fields, but I wanted to make sure what I was doing wasn't the "wrong" way to do it.

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    whether it is a wrong or right way depends on how will you use the field.

    if you only use this field to show on a report or query. min:sec is an good option.
    but min:sec is hard to do any calculation.

  7. #7
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93
    That is what I came to figure out, but have noticed that the easy way in Access is usually the wrong way (pertaining to queries) and wanted to make sure.

    Thank you for your time and help.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-23-2010, 09:11 AM
  2. Time calculations
    By jimandann in forum Programming
    Replies: 2
    Last Post: 02-18-2009, 12:27 AM
  3. Time difference
    By jguidry in forum Programming
    Replies: 1
    Last Post: 11-15-2008, 12:41 PM
  4. Time
    By bertenbert in forum Queries
    Replies: 1
    Last Post: 08-04-2008, 03:05 AM
  5. Unix Time
    By wifor in forum Programming
    Replies: 2
    Last Post: 07-29-2008, 11:01 AM

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