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

Date Parameter...

Status
Not open for further replies.

stormtrooper

Programmer
Apr 2, 2001
266
CA
I'm pretty new to Crystal Reports but have been working with Access for quite some time. I need to grab data from a date field and I need it from the current date and back 3 months. (ie. info from today back to Jan.18)

I'm thinking '{field} in currentdate to currentdate-something'

Please advise.
Thanks,
Stormtrooper
 
Adding or subtracting 3 months to a date can be a problem depending on your version. In V8 use the DateAdd() function to add a -3 months. If you have V7 you can download the Date DLL from Crystal's website to use the DateAdd(). If you can't use this dll for some reason, my FAQ on common formulas shows a formula that allows you to add (or subtract) a number of months from a date. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top