Solved

Add years to a date field through an update query

Posted on 2007-04-03
2
232 Views
Last Modified: 2012-06-27
Good Day All, I have converted a dBase IV database that has some old employee absences data. The data is pre 2000, and I want to add a number of years to the date field to bring me out of the stone ages. I want to do this through an update query, but I have not been successful.

Any suggestions would be greatly appreciated. I am using Windows XP and Access 2002 in 2000 mode.

Thanks in advance,

David
0
Comment
Question by:yddadsjd95
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 total points
ID: 18845706
are you aware for the DATEADD("yyyy", 2000, yourdatefield)   to add 2000 years to the date field value...
assuming of course that the field is indeed datetime...
0
 

Author Comment

by:yddadsjd95
ID: 18846090
I wasn't, but I am now :o). Thanks Angel for coming to my rescue and taking time out of your busy, busy day (I read your profile) to assist me.

Have a blessed day as you have blessed mine.

David
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question