Results 1 to 3 of 3
  1. #1
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150

    Adding Extra Time

    HI Guys

    Code:
    Expr7: IIf(([Work_Type]="S") And ([Location]="D"),((([Exam_Duration])+2)),IIf(([Work_Type]="I") And ([Location]="D"),((([Exam_Duration])+2)),IIf(([Work_Type]="S"),((([Exam_Duration])+1)),((([Exam_Duration])+1)))))
    using the above code im trying to add 1 and 2 extra hours to [Exam_Duration], [Exam_Duration] is in time format. Please advice me how to add extra time to exam_duration??



    Thanks in Advance

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    This will add 120 minutes to your time ("n" is used for minutes as "m" is already used for months !)
    Code:
    DateAdd ("n",120,[Exam_Duration])
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    Hi
    Minty thanks alot mate, that worked.

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

Similar Threads

  1. Code is adding an extra record every time
    By mooreb55020 in forum Access
    Replies: 18
    Last Post: 10-09-2018, 07:41 AM
  2. Replies: 12
    Last Post: 07-19-2015, 05:21 PM
  3. Replies: 6
    Last Post: 07-06-2015, 11:57 AM
  4. Replies: 1
    Last Post: 09-21-2012, 12:02 PM
  5. Search result links adding extra info
    By Vbcw in forum Programming
    Replies: 0
    Last Post: 12-19-2008, 12:19 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