Solved

Crystal Reports sub report link

Posted on 2014-01-17
6
923 Views
Last Modified: 2014-01-21
I have a sub report that has fewer records than the main, is it possible to change the link so it returns null but still shows the main report data
(Like a right join in a query)
0
Comment
Question by:HKFuey
6 Comments
 
LVL 22

Expert Comment

by:Ido Millet
ID: 39788286
Please clarify. Perhaps provide a concrete example of the data you need to show and how you are currently linking the subreport to the main report.
0
 

Author Comment

by:HKFuey
ID: 39788310
OK, for example: -
The Main report is a Customer Statement
The sub report links to a table with customer email addresses

The link between the 2 is CustomerCode, but this may not always exist in the sub report data.

My question is: if the sub report has no data will data still show on the main report?
0
 
LVL 22

Accepted Solution

by:
Ido Millet earned 250 total points
ID: 39788322
Yes, the subreport link is not like a database join.  It can't restrict records in the main report.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 150 total points
ID: 39788556
You can format the subreport so it doesn't display if there are no records.

Right click the subreport
]Click FORMAT SUBREPORT
On the last tab there is a check box to SUPPRESS BLANK SUBREPORT

mlmcc
0
 
LVL 34

Assisted Solution

by:James0628
James0628 earned 100 total points
ID: 39790591
Just to add a bit to what the others said ...

 You could say that a subreport is _kind_ of like an Outer Join, in that it won't restrict the results in the main report, but that's because there really is no connection at all between the queries in the main report and subreports.  When you use "Change Subreport Links", you're not actually "joining" the main report and subreport queries in any way.  All that you're really doing is passing values to parameters in the subreport, and then the subreport can do whatever with those values, but that will have no effect on the data that's included in the main report.

 James
0
 

Author Closing Comment

by:HKFuey
ID: 39796802
Thanks for the help, I am clearer now!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now