Results 1 to 4 of 4
  1. #1
    Mister-B is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    31

    Adding years to date in Table

    I'm really new to acces but have worked a lot with Excel. I have an access table with lots of Information. In one colum are the dates of birth of employees. I would like Access to now compute the date the employees reach their 60th birthdays. I have tried DateAdd, DateSerial but nothing works. So, I am trying to add 60 years to the date that is in the column named "Geburt". Can anybody help?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    DateAdd("yyyy",60,[Geburt])

  3. #3
    Mister-B is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    31
    Thanks for the quick Reply. I have actually tried that before but Access is telling me that it does not recognize "Geburt" although it is definitely the Name of the column in the table. Any ideas?

  4. #4
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Where are you trying this ? Open the query designer add your table and then add a calculated field ;

    When60: DateAdd("yyyy",60,[Geburt])
    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 ↓↓

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

Similar Threads

  1. Replies: 2
    Last Post: 08-19-2014, 05:50 AM
  2. Date dfference +4 years
    By sdc1234 in forum Queries
    Replies: 9
    Last Post: 11-20-2013, 11:34 PM
  3. Crosstab query with date range (2 years)
    By Cassim in forum Queries
    Replies: 7
    Last Post: 11-11-2013, 08:48 AM
  4. Adding months to years in queries
    By TonyB in forum Queries
    Replies: 2
    Last Post: 07-29-2011, 09:29 AM
  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