×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Actual date in input parameters

Actual date in input parameters

Actual date in input parameters

(OP)
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

RE: Actual date in input parameters

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

RE: Actual date in input parameters

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

RE: Actual date in input parameters

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

http://www.informeddatadecisions.com
kai@informeddatadecisions.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close