Results 1 to 3 of 3
  1. #1
    bwian1234 is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2010
    Posts
    10

    Access 2010 update: add 1 year to a date

    Hi, I know this must be easy, but I can't get an answer.
    I'm using Access 2010

    I have a field, 'Year End', this contains a date.
    I have an update that adds 365 days to this date

    The criteria I have is :-
    Field: Year End
    Table: delrun


    Update to: Date()+365
    Criteria:
    Or:

    SQL is:
    UPDATE delrun SET delrun21.[Year End] = Date()+365;

    How do I add exactly 1 year?

    Thanks in advance

    Tony.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,928
    use the dateadd function

    Update to: dateadd("yyyy",1,Date())

  3. #3
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can use the Access DateAdd function. It allows you to add any interval (days, months, years, etc).
    See: https://www.techonthenet.com/access/...te/dateadd.php

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

Similar Threads

  1. Replies: 7
    Last Post: 06-07-2015, 11:57 PM
  2. Access 2010 Year Timeline of World History
    By krobbyzw in forum Access
    Replies: 2
    Last Post: 06-07-2014, 02:15 PM
  3. Replies: 2
    Last Post: 04-25-2014, 11:33 PM
  4. Replies: 4
    Last Post: 01-09-2013, 11:16 AM
  5. Replies: 4
    Last Post: 01-10-2012, 06:26 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