Solved

Crystal Link to Sub-reports

Posted on 2013-11-14
1
828 Views
Last Modified: 2013-11-15
Can i use "LIKE" or "STARSWITH" in  a Sub-report link?

Does a sub-report read the first record and then process data, and then the second record or does it have to read every record for each link in the sub report?

Problem is:
Created a report that show sales for specific items for specified customers during a date range.  I trimmed the item Name to 5 letters in a formula field.
(the item we are comparing against are samples, all samples begin with "SS".  Trimed the Item code so that is represents the non-sample item code.)

I create and run a separate report using Parameter fields entering in the Customer number and the Special Item codes and I get data returned.  I did this to test linking up the sub-report.
But when I add the sub report to the original report it hangs,(of course I updated the links to the sub report and verified that the Report Selection Formulas are correct.
when I run the report I get some data but when I go to page 2 it seems to hang.
I get the first customer data back, this customer sub-report is blank because it did not meet the criteria for the sub report.

In the main report I have a detail section with the customer number, item number, invoice date, invoice number. quantity sold, and custom filed that I trimed using the MID function well call it SPECIAL ITEM CODE.
This main report is grouped using the Customer number and the detail records are sorted by Date.

I insert the new sub-report into the Group footer for the customer number group.
 
Because the main report has Customers detail records that do not meet the sub-report links it will return a blank sub-reports (I like to have these records be removed?)

It also seems to stop running, because whenever I go to view the next page of data it locks up and start to recalculate the report?

So....If I can, How do I link the sub-report correctly so that it runs only returns customer sales data that is matched?

Also does it make a big difference which section I insert the sub-report?

I am so close to making this work, I think!
0
Comment
Question by:Scott Johnston
1 Comment
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39650185
The link itself can't be changed however you can edit the subreport selection formula so it selects the records you want based on the linked value.

It makes a huge difference where you put the subreport
It runs 1 time for each time that section is displayed

Page Header/footer - 1 time per page.  Subreport in page footer cannot grow because the page footer can't grow.

Report header/footer - 1 time per report

Group header/footer - 1 time per group

Details - 1 time for each record in the report

How to link
You need to select fields from the main report that will identify the data you want in the subreport.

What you use is totally dependent on the data and what you need.

mlmcc
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

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. …
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 …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

18 Experts available now in Live!

Get 1:1 Help Now