Results 1 to 3 of 3
  1. #1
    ROB is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    7

    DateDiff

    I have a problem trying to display the hours and mins in the same field. I can get it to display the hour and the mins difference. What is the solution, at present I have DiffHours"h",[DateFrom],[DateTo]) It only displays the hour not the minutes difference eg 13:45 TO 15:10 ONLY SHOWS 1 HOUR NOT 1 HOUR 25 MINS

  2. #2
    LillMcGill is offline Dagny fan
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Oct 2010
    Location
    Southern USA
    Posts
    70
    Calculate Minutes... Minutes: DateDiff("n",[date1],[date2])

    Then get hours and minutes from that...Expr1: [Minutes]/60 & Format([Minutes] Mod 60,"\:00")
    Last edited by LillMcGill; 10-30-2010 at 06:13 AM.

  3. #3
    ROB is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    7
    Thank you very much problem solved

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

Similar Threads

  1. How to use DateDiff?
    By teirrah1995 in forum Queries
    Replies: 10
    Last Post: 10-19-2010, 12:07 PM
  2. Need Help with Datediff
    By gonzod in forum Access
    Replies: 5
    Last Post: 08-26-2010, 02:29 PM
  3. Datediff
    By greggue in forum Queries
    Replies: 2
    Last Post: 08-13-2010, 03:53 PM
  4. DateDiff function
    By Scott R in forum Reports
    Replies: 5
    Last Post: 12-03-2008, 07:32 AM
  5. Datediff() help needed
    By geoff44 in forum Access
    Replies: 2
    Last Post: 11-20-2008, 04:44 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