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!

Help with Cascading Parameters

Status
Not open for further replies.

Ofina

Technical User
Feb 25, 2004
156
US
I have an invoice report that has as parameters Starting Date, Ending Date, and Customer.

I know how to do cascading parameters where they are all dynamic. But, this one has me stumped.

I would like the user to select a starting date (static), an ending date (static) and then have the list of available customers to choose from be only those with invoices within those dates.

Can I do this?
 
Maybe I'm missing something? If I understand you, do this.
In the Select Expert use invoice date > {?state date} and invoice date < {?end date}.
You create the parameters the same way as you always have.
 
I have start date and end date in the select expert already and customer too.
But, my drop down for customers in the parameter window includes all customers ever invoiced, and I want it to only show me those customers who have been invoiced within the dates entered into the parameter window right above.
 
I admit to not only not understanding why it matters, or even what answer you are looking for. SQL? Is that what you mean?
 
You mean SQL Server? If it lived in Access I could tell you how to group on dates.
I believe you're looking for the customers whose invoices are between the dates?
How is the customer data and invoice data set up (what tables are they in)?
 
Forgive me, but can you explain why it is relevant what the table name is?
The data is in SQL server, but obviously I'm doing this in Crystal.

I know how to set up cascading parameters in Crystal if each one is dynamic, but the two date parameters are static.
 
I didn't ask for the table name, I asked if the data is in the same table or multiple tables.
It seems to me, if you're entering dates and getting data from outside the date range, that the problem is in the way the tables are linked. Assuming the data is in multiple tables.
If by static you mean always the same, hard code those dates into the Select Expert, you don't need parameters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top