Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add years to a date field through an update query

Posted on 2007-04-03
2
Medium Priority
?
234 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 500 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

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 …
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

730 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