Results 1 to 3 of 3
  1. #1
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283

    hh:mm:ss field not subtotaling

    I have a time field that is in seconds. I am using the following to format it to hh:mm:ss but when I export it and try to subtotal it in excel it always returns 00:00:00.

    Prev_Week_TT_In: Format(([TT In]/86000),"hh:nn:ss")

    I can go to text to columns and change the column so that the sum calculation works in the subtotal but I would like to not have to do that.



    Is it the formatting I am using that is causing the issue?

    I see this result I would like to see

    00:45:12 00:45:12
    00:32:24 00:32:24

    00:00:00 00:77:36

    As always, Thanks in advance!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you dont add time that way. Usu you use DateAdd() but you are summing.
    convert it to like units (seconds) then sum.

    or get the DateDiff()

  3. #3
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    sorry I may have not explained myself quote right.

    The field [TT In] contains the time in seconds. I then format the seconds to hh:mm:ss using the formula above.

    When I try to subtotal the hh:mm:ss values together for multiple rows it returns 00:00:00 instead of the total time in hh:mm:ss as I would expect

    hope I didn't make it worse

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

Similar Threads

  1. SubTotaling on a Form with multiple Sub Forms
    By mechanicalscarecrow in forum Forms
    Replies: 12
    Last Post: 07-06-2015, 02:32 PM
  2. Replies: 6
    Last Post: 06-26-2015, 08:55 PM
  3. Replies: 17
    Last Post: 03-16-2014, 10:52 PM
  4. Replies: 3
    Last Post: 12-27-2013, 02:33 PM
  5. Sorting/Subtotaling pivot tables
    By Tina in forum Access
    Replies: 0
    Last Post: 08-25-2010, 10:34 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