New Field -- Date Field + 10 years formula needed.

  • Thread starter Thread starter Chad Graybill
  • Start date Start date
C

Chad Graybill

This is probably a quick snap from what I have read from the experience of
some of the posts in this newsgroup.

I need to create a formula (I guess in a query) that takes (Manuf Date)
(ex.12/01/2003) and add 5 years to make a new field called (Next Test Date).

Can someone help me?

Thanks in advance, from an Access Hacker.

Chad Graybill
(e-mail address removed)
 
You may not want to go this way, but I have sometimes
calculated the number of days in the time period
needed..in your case 5 years (you have to take leap year
into consideration), and in a new column in the query, do
the following:

Your Field Name: [name of your date field]+ #of days

Could be a better way, but the above will work.
 
This is probably a quick snap from what I have read from the experience of
some of the posts in this newsgroup.

I need to create a formula (I guess in a query) that takes (Manuf Date)
(ex.12/01/2003) and add 5 years to make a new field called (Next Test Date).

Can someone help me?

Thanks in advance, from an Access Hacker.

Chad Graybill
(e-mail address removed)

[Next Text Date] = DateAdd("yyyy",10,[Manuf Date])
 
This is probably a quick snap from what I have read from the experience of
some of the posts in this newsgroup.

I need to create a formula (I guess in a query) that takes (Manuf Date)
(ex.12/01/2003) and add 5 years to make a new field called (Next Test Date).

Can someone help me?

Thanks in advance, from an Access Hacker.

Chad Graybill
(e-mail address removed)

[Next Text Date] = DateAdd("yyyy",10,[Manuf Date])

Correction.
Your Subject line says + 10 years, but your message said + 5 years.

[Next Text Date] = DateAdd("yyyy",5,[Manuf Date])
 
Chad,

UPDATE tblMyTable SET [Next Test Date] = DateAdd("yyyy", 5, [Manuf Date])

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 
Back
Top