Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to ghange year only on date field

Status
Not open for further replies.

Barra44

Programmer
Dec 18, 2001
50
AU
Hi
I have a table with a date field dd/mm/yy
I would like to change all the dates in this table but I only want to change the year to 2003
and keep the day and month the same

is there an easy way of doing this without sitting there a manually changing 1200 records

Thanks in advance
 
Something like
Code:
UPDATE tablename SET 

TheDate = DateAdd ( "yyyy", 2003 - Year(TheDate), TheDate )
 
Excelent
Problem solved

Thannk you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top