Results 1 to 2 of 2
  1. #1
    dezenzerrick is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2015
    Posts
    7

    Converting decimal value to hh:mm:ss

    Hi all,

    I have a database that tracks the amount of time an employee has trained on something.


    When I run a report, the total training time for all employees is summed in minutes.

    It will display like
    Total Time: =Sum([Minutes]) where [Minutes] is what was entered for each employee.

    The issue is that the data is in a decimal format. When the time is entered it is like so:

    Time (minutes): 5.45, where .45 is (.45*60) seconds, or 27 seconds.

    So, when the time is summed, it comes up as 5.45+etc etc etc...
    I know in Excel you can use =TIME(0,INT(A1),MOD(A1,1)*60) to convert a decimal to time, but I can't figure out how to do this in Access.

    The time is displayed in a text box, and the function uses "=Sum[(Minutes)]" as the control source.

    I am trying to use the expression builder for this. Should VBA be used?

  2. #2
    dezenzerrick is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2015
    Posts
    7
    Update: I figured out a way, nevermind.

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

Similar Threads

  1. Convert decimal comma to decimal point
    By Hans Karlsson in forum Programming
    Replies: 3
    Last Post: 06-30-2014, 01:56 PM
  2. Converting a Number to Decimal
    By lwilt in forum Access
    Replies: 5
    Last Post: 10-11-2013, 05:02 PM
  3. Converting text to 2 decimal places
    By lwilt in forum Access
    Replies: 1
    Last Post: 09-13-2013, 09:58 AM
  4. Converting Hexadecimal to decimal
    By darvis_aurian in forum Access
    Replies: 5
    Last Post: 04-05-2012, 01:20 PM
  5. Converting HH:MM to decimal
    By katrinanyc926 in forum Queries
    Replies: 5
    Last Post: 08-13-2010, 02:39 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