Results 1 to 6 of 6
  1. #1
    DDT~123 is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2014
    Posts
    3

    time format help to display high number of hours


    Greetings All - I'm needing a little help with a field displaying 575:00:00. I've tried formatting as hh:nn:ss

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    hh:nn:ss is to format clock time, not elapsed time.

    575:00:00 is not a clock time. That looks like a text string for elapsed time, in which case date formatting is futile because it is not a date/time value. Elapsed time should be saved as a double number type (or save start and end date/time and calculate difference). Then will require code to convert to the string 575:00:00.
    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.

  3. #3
    DDT~123 is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2014
    Posts
    3
    I changed the format to double number and now it displays properly. How would I use that field with another to have a calculated percentage? For example... 575:00:00 is what percentage of 627:53:08?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Are you saying you changed field data type and the value is now stored as 575 and formatting displays it as 575:00:00? How do you do that?

    Format property does not alter the original data. Just do calcs.

    Format function results in a string.
    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.

  5. #5
    DDT~123 is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2014
    Posts
    3
    Yes, I didn't catch that... I had it formatted as text instead of a double number. Now my dilemma is that I have Total Hours as a double number (575:00:00 displays as 2070000), and another field which is the number of seconds in a day (86400). How can I show the difference in time so it'll display as 575:00:00? Right now if I did a calculated field and divided Total Hours by Seconds in a Day it displays 23:00 (formatted as short time). In Excel, it would display as 575:00:00 using the following format: [h]:mm:ss.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    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: 7
    Last Post: 10-05-2013, 08:43 AM
  2. Field to display hours and minutes
    By burrina in forum Forms
    Replies: 5
    Last Post: 01-19-2013, 05:35 PM
  3. formating hours and minutes to 0.00 format
    By live2ride in forum Access
    Replies: 17
    Last Post: 09-18-2012, 07:52 PM
  4. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  5. Calculation for time x hours in table
    By hellojosie in forum Access
    Replies: 6
    Last Post: 11-20-2011, 01:54 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