View Full Version : Change just year


rschultz
10-23-2001, 02:55 PM
is there a way to change just the last four digits of a date? I just need to change the year on several records.

R. Hicks
10-23-2001, 04:18 PM
I'm sure this can be done, but you need to give more details. Are you wanting to add a certain number of years to the date? Or do you want to change a specific year of dates to another year? We need more details to give an exact answer.

RDH

rschultz
10-24-2001, 06:04 AM
the dates are currently 10/24/1920 and 10/24/1900. I need them to be this year.

thanks

Pat Hartman
10-24-2001, 07:20 AM
Determine the earliest twentith century year that is valid. Then create an update query that selects all dates earlier than 1/1/xxxx and add 100 to the year using the DateAdd() function.

rschultz
10-24-2001, 08:15 AM
that was it. Thanks. It took a bit a tweaking. I checked OnLine help and the first time I ran it it changed everything and gave me 2720 for the year. But I finally got it. Thanks again