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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto calculate date 1

Status
Not open for further replies.

thefroggy

Technical User
Joined
Apr 20, 2004
Messages
31
Location
GB
I’m using access 2000, here is the prob I’ve got.

I’m trying to create a field where a date will be automatically entered. My colleagues need to review the data every five years to check if not out dated.

I’m using a =date() expression to set the date, and I’d like to create a field where 5 years is added to today’s date. How can I do that?

Thanks,

Steph.
 
Hi Steph,

You can use the DateAdd function to do what you need. eg.

Code:
DateAdd("yyyy", 5, date())


Hope that helps

Sim


----------------------------------------
I was once asked if I was ignorant or just apathetic. I said, "I don't know, and I don't care."
----------------------------------------
 
Thanks Sim,

Works exactly the way I wanted. Gave you a start for the help.

thanks again,

Steph.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top