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!

Parameter Field

Status
Not open for further replies.

campbere

Technical User
Oct 10, 2000
146
US
I am using CR 6. Is it possible to base a query off of parameter values? I have a report based on a query. However I need the query to be based on the users date values that are entered.

Can this be done?
 
Yes. In the SQL Designer create a parameter as part of the query (Edit on the menu). Then recreate the parameter in your report and the response will be passed to your query David C. Monks
david.monks@chase-international.com
Accredited Crystal Decisions Enterprise Partner
 
Ok I am not sure how to create a parameter as part of the query.

This is my sql statement:

select name,
count(distinct label) CDS,
count(issn) ISSUES
from issue_tracker
where TASK_END is not null
and NAME is not null
and LABEL != 'NONE'
group by name

How do I create the parameter part in my query? I want parameters that ask for a start date and end date. Basically the user is determining a reporting time. So I would like the report numbers to be based on task_end >= Start Date and task_end <= End Date.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top