Add 28 years?!

S

Sam

Hi all,
I have a date 1969 and I want to run an update
query to add 28 years to this but need some guidance. I
have looked at the dateadd function but I am not too sure
if this is what I need.
I would welcome any hints?
Thanks
Sam
 
D

Douglas J. Steele

DateAdd is probably what you want. DateAdd("yyyy", 28, [MyDateField]) (or,
more specifically

UPDATE MyTable
SET MyDateField = DateAdd("yyyy", 28, [MyDateField])
 
S

Sam

Many thanks
-----Original Message-----
DateAdd is probably what you want. DateAdd("yyyy", 28, [MyDateField]) (or,
more specifically

UPDATE MyTable
SET MyDateField = DateAdd("yyyy", 28, [MyDateField])

--
Doug Steele, Microsoft Access MVP



Sam said:
Hi all,
I have a date 1969 and I want to run an update
query to add 28 years to this but need some guidance. I
have looked at the dateadd function but I am not too sure
if this is what I need.
I would welcome any hints?
Thanks
Sam


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top