Results 1 to 4 of 4
  1. #1
    tennisbuck is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Posts
    51

    Adding Time Values

    Hi Everyone,



    Does anybody know how to do the following:

    1.) I have two columns Time 1 is in (hh:mm:ss)
    2.) The second column is a iff statement based on bullet point 1 to return the value 12 if its pm.
    3.) I need to add column 1 to column 2 to add 12 hours to the pm values.

    Mike

  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 DateAdd() function
    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
    tennisbuck is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Posts
    51
    Thanks. How would I use the dateadd() DateAdd(«interval», «number», «date») ?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    DateAdd("h", [fieldname], [fieldname])
    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. Adding Time on a Report
    By darlaj5 in forum Reports
    Replies: 2
    Last Post: 04-11-2014, 08:46 AM
  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

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