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

Actual date in input parameters

Status
Not open for further replies.

Petbul

MIS
Jun 20, 2001
56
CZ
I need to schedule report as an automatic overnight proces. Most of request parameters are Year, Month and Work group. Please , How can I set input parameters as a dynamic parametr - the report should check actual date and change the value of date (e.g. report launched in November should have November in input parametr etc.). Many thanks Petr
 
It would help to know specifically how you expect the date to be dynamic.

Because, based on what you've said so far, I'm thinking you should do away with the parameters completely, and just use Month(CurrentDate) = Month({Database.Date}) and Year(CurrentDate) = Year({Database.Date})

Naith
 
If you create a date parameter with no default values, it will default to the current date.

In terms of a report launched in November having a November date, I go along with Naith, you do not even need a parameter, just use the CurretnDate function and calculate start and end dates from there. Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
 
Add the following to the record selection criteria of the report:

{MyTable.MyDateField} >= date(year(currentdate),month(currentdate),1)

If you have a datetime field, so use the datetime function instead.

This will limit rows to the current month.

You can also add in your workgroup criteria here rather than using parms.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top