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 formating in Crystal reports

Status
Not open for further replies.

aarong2

Programmer
Dec 10, 2002
2
US
I'm not at all familiar with Crystal Report Syntax. I currently have a report that pulls data using the following example.
({@date}>Date(2002,11,6))and({@date}<Date(2002,11,8))

This works fine if the user wants to specify the date range everytime. However, I would like to schedule this report as a job and to use the current date. How do I change this report parameter to use today's date? How about the past seven days?

Aaron
aarong@connexusenergy.com
 
Create you date parameter (StartDate's a good name for it.[smile])

(@date) in ({?StartDate}) to CurrentDate


Mike

Before: After
[morning] [bugeyed]
 
{@date} in CurrentDate to Dateadd(&quot;d&quot;,-7,CurrentDate)

give you the last 7 days. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top