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

    Date Difference Calculation in Expression Builder

    I'm trying to add a calculated field which will be the time difference between two other date/time fields.



    When I try to make a Calculated Field it does not recognize the DateDiff command.

    Is there a preferred method to create a calculated field based on date/time differences? One would think this would be an easy thing to do.

    Thanks for your time..... I will continue researching and testing to see if I can figure it out.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    If you want difference in days, day is default unit with simple add/subtract dates. Could try:

    [datefield2] - [datefield1]

    Otherwise, do calc in query or textbox.
    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. time difference calculation help
    By JayRab in forum Access
    Replies: 5
    Last Post: 02-03-2014, 01:32 PM
  2. Replies: 2
    Last Post: 04-10-2013, 01:37 PM
  3. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  4. Using expression builder to find lowest date
    By MMcKenna in forum Queries
    Replies: 1
    Last Post: 03-20-2012, 02:28 PM
  5. Calculation in Code Builder for Sum & Subtraction
    By braveali in forum Programming
    Replies: 19
    Last Post: 03-07-2012, 12:32 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