adding years to dates.

G

Guest

Hi,
Ihave a form which contains a calendar and two text boxes. When a date
is clicked on the calendar it updates textbox1 with the date. I need
textbox2 to automatically update with the same date but 3 years in advance.
How do I do this. I know how to add minutes and hours on to a time but can't
work out dates

Rhys
 
G

Guest

Hi.

Search Access Help on the DateAdd function. You probably want to use it
like this:

DateAdd("yyyy", 3, "ControlName")

-Michael
 
G

Guest

thanks mate

Michael H said:
Hi.

Search Access Help on the DateAdd function. You probably want to use it
like this:

DateAdd("yyyy", 3, "ControlName")

-Michael
 

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