Solved

Crystal Reports sub report link

Posted on 2014-01-17
6
928 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

805 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