Once you have passed the params properly, the second part of your ? should resolveitself.
Main Topics
Browse All TopicsIn Crystal 9.0 I am having 2 parameter problems. First, I have a main report from a stored procedure which has a total of 5 parameters. I then have a subreport based on a stored procedure which has 4 parameters. The parameters in the main report are: study, site, patient, reviewer code and business days outstanding. The 4 parameters in the subreport are: study, site, patient and business days outstanding. The 2 reports are not linked at all except by the same 4 parameter fields. For example, I went to edit, subreport links and linked w_study in the main report to w_study in the subreport. All of the parameters for both reports have been created in the stored procedures. The first problem I am having is that when I first open the report I have to enter the parameters once for the main report and once for the subreport. After I enter the params for both reports once then when I refresh the data with different params I only have to enter them for the main report which passes them on to the subreport. How can I get Crystal to pass the main report params to the subreport params the 1st time around? My second problem is that when I enter a param for the main report reviewer code parameter the report brings up the correct data for the main report but all of the fields for that study show up on the subreport even though the subreport does not have that parameter nor does it have that field. How can I get my subreport to not show data if the reviewer code parameter is not null in the main report? Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The params were already set by changing the subreport parameter links. Here are how the params are linked: main report w_study = subreport w_study, main report w_site = subreport w_site, main report w_patient = subreport w_patient main report w_bdays = subreport w_bdays. the only param not shared between the 2 reports is the reviewer code. If I run the subreport separately the params work. Because the parameter fields were linked at the very beginning of the report is why I cannot figure out why when I first open the report I have to add parameters to both the subreport and main report and then once I initially do that then I do not have to do it again. Thanks.
Instead of deleting the sub-report, you can <right-click> on it (main report design view) and choose <edit sub-report>... 2 things to check within the sub-report:
1) Select Expert = Delete any references to parameters that you did not specifically link to
Note: When you originally create a sub-report and go into the linking dialog box and select main report items for linking, Crystal automatically creates parameters within the Select Expert of the Sub-report. This is actually how the sub-report links function to "select" the correspoinding data... This Crystal generated parameters generally begin with something like "{?-pm...}" (Sorry, I'm going strictly from memory here since I haven't had a computer with Crystal on it for a few months now)
2) Formula Editor = Again, Delete any parameters that you do not intend to use for linking.
that should do it! Best wishes :) Pat K
Business Accounts
Answer for Membership
by: erpetersPosted on 2003-08-12 at 11:04:06ID: 9132127
RIGTH CLICK YOUR SUB AND CHANGE SUBREPORT LINKS...MOVE YOUR DESIRED FIELD/PARAM FROM LEFT TO RIGHT AND THEN IN THE LOWER LEFT PULLDOWN SELECT THE SUBPARAM YOU WNT THIS PARAM TO BE INSERTED FOR...