Solved

Add years to a date field through an update query

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
Introduction Hopefully the following mnemonic and, ultimately, the acronym it represents is common place to all those reading: Please Excuse My Dear Aunt Sally (PEMDAS). Briefly, though, PEMDAS is used to signify the order of operations (http://en.…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now