Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Crystal Reports 9 and Subreports

Posted on 2016-09-09
3
Medium Priority
?
135 Views
Last Modified: 2016-09-12
Hello,
      I have a report that has several subreports in it. I have 2 parameter fields to define the

criteria for the report. The report runs ok and I like the results, however, with the way the report

is currently configured I have to enter the parameters for each subreport every time I run the report.

Is there a way to only do this once and have the report AND the subreports use the same parameters?

Thank you
0
Comment
Question by:daskas27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 2000 total points
ID: 41791837
Right click on the supreport, select menu "Change subreports Links" and link the parameters from the main report to the parameters in the subreport. In the "Available fields" list select the main report parameter and click the arow to move it to the right list. Aelect the item in the right list and  the bottom left corner select the corresponding subreport parameter.  You need to do this for each subreport. When it is done Crystal will not ask you for subreport parameters , it will take the values from the main report
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 41793096
When you select the parameter from the subreport be sure to select the one you created not the one the report suggests.  The report will create one that starts with ?pm_

Use the drop down list to select the one you created in the report.

Another way to do this would be to delete the parameters from the subreport and just use the linking to create parameters in the subreport.
mlmcc
0
 
LVL 1

Author Closing Comment

by:daskas27
ID: 41794051
Thank you. I have awarded the points but can I ask one more question? The subreports use a whole page regardless of the amount of records returned. Is there a way to clean this up so the data shows directly under each other for each sub?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question