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

adding or subtracting a date by months?

Status
Not open for further replies.

ktskiro

Programmer
Jan 4, 2005
2
US
I am having an issue with subtracting months from today's date? It is causing all data to be filtered. How do I subtract months from today's date and get only 6 months ago. I know the problem is the year. How do I fix this?

 
Use the DateAdd Function
DateAdd("m", -6, Date())
Check out the help in access to see all the options for the first parameter.

good luck

mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top