Results 1 to 2 of 2
  1. #1
    newaccess123 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    1

    Formula to Add Years to Date with IF function

    I need some help with a creating a formula to add specific amount of years to a specific date when another field is a certain criteria. I have a "Completed Date" field that I want to add 6 years to when the "Type" Field has an answer of New. This will be in a new field titled "Restart Date".



    I am able to do this in excel but cannot figure this out for a new access database I am creating.

    Thank you in advance for any assistance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Calculate this in query or textbox.

    DateAdd("yyyy", IIf([Type]="New", 6, 0), [Complete Date])
    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. Replies: 3
    Last Post: 02-24-2019, 02:35 PM
  2. Adding years to date in Table
    By Mister-B in forum Access
    Replies: 3
    Last Post: 07-09-2018, 03:36 AM
  3. Replies: 3
    Last Post: 05-20-2014, 05:43 PM
  4. Date dfference +4 years
    By sdc1234 in forum Queries
    Replies: 9
    Last Post: 11-20-2013, 11:34 PM
  5. query date that is five years older than today
    By cpsummer in forum Queries
    Replies: 2
    Last Post: 09-26-2007, 02:31 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