Solved

Add years to a date field through an update query

Posted on 2007-04-03
2
229 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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