Results 1 to 3 of 3
  1. #1
    darlaj5 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    10

    Adding Time on a Report

    I am one step away from completing this data base and I'm stuck. I have pulled [TOTAL TIME] per school for each field trip to a report from a Query. The [TOTAL TIME] is an espression field based off the diff from [START TIME] AND [END TIME]. So the report looks like:

    Date # Total Time
    School #1 4/4/2014 Trip 1 413



    Subtotal 6:53 CORRECT



    School #2 4/5/2014 Trip 2 374
    4/7/2014 Trip 3 363
    Subtotal 12:03 SHOULD BE 12:17

    =Sum([TOTAL TIME])/60 & Format([TOTAL TIME]Mod 60, "\:00") in the Subtotal Property Sheet, Data, Control Source and it is giving me the correct # of hours but it appears for minutes its just dropping the number from last entry when its asked to add. Trip 1 is correct but when adding trip 2 and three the total hours are correct but its not calculating the remainder in minutes.

    Can someone please help me I would really appreciate it. Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Try:

    =Sum([TOTAL TIME])/60 & Format(Sum([TOTAL TIME]) Mod 60, "\:00")

    However, still don't think that is what you need. Maybe:

    =Int(Sum([TOTAL TIME])/60) & Format(Sum([TOTAL TIME]) Mod 60, "\: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
    darlaj5 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    10
    YES YES YES, thank you so much I have been trying to figure that out for weeks. =Int worked I really appreciate your help.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-06-2013, 07:52 PM
  2. adding and subtracting two time
    By smahdih in forum Queries
    Replies: 3
    Last Post: 11-20-2011, 03:21 PM
  3. Adding Time help
    By Bozilla in forum Forms
    Replies: 3
    Last Post: 11-08-2011, 09:18 AM
  4. adding time & date
    By tyekhan in forum Queries
    Replies: 1
    Last Post: 07-21-2011, 08:13 AM
  5. Adding Time
    By jlclark4 in forum Queries
    Replies: 7
    Last Post: 05-04-2011, 10:35 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