Solved

Crystal Reports sub report link

Posted on 2014-01-17
6
935 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
[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
6 Comments
 
LVL 23

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 23

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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 35

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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