Solved

Crystal reports unlinked sub report with Parameter generates error on main report

Posted on 2014-01-28
7
2,291 Views
Last Modified: 2014-03-24
I don't know if what I'm trying to do is even possible.  I'm fairly new at Crystal, and am using Crystal in conjunction with Epicor.

I have a sub report that I want to print on a main report.  The two reports have nothing in common.  The main report is grouped on three fields, and the data appears in the group footer #3.  The records are selected based on an option field's input.


The sub report is grouped on one field, and the data appears in that group footer.  The subreport requests a Job Number parameter, which will return the appropriate material information for that job.  There is a record selection formula that includes the parameter.

I want this to print in the group footer #3 for the main report (like a continuation of the grouped data).  The sub report works perfectly on its own.  The main report works perfectly on its own.  

When I put the sub report in the main report, and test the report, I put in the main report option (a shipper number).  Then the request for the parameter input pops up, and I put in the Job Number, and then I get an error message telling me that there is an error in the record selection formula because the field name is not known.

First, is what I'm trying to do even possible?  
If it is, I'd truly appreciate any direction.  I have been fussing with this off and on for weeks, and I am clearly spinning my wheels.

Thanks in advance!
0
Comment
Question by:Jason Tabor
[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
  • 2
7 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 39816239
If you are able to run the report in Crystal Designer but it fails in Epicor the problem is in Epicor. Did you try to run the report with another viewer ?

Also, it is a better practice to define the subreport parameters  on main report level and pass them down to the subreport ( by linking the subreport parameter to the main report parameter)
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 39816332
WHat version of Crystal are you using?

Is it a stand-alone version or is it an Epicor OEM version?

mlmcc
0
 

Author Comment

by:Jason Tabor
ID: 39817996
vasto - I am able to run both reports in Epicor, but not once I put the subreport in the report.

How do I link the subreport parameter to the main report parameter?

mlmcc - I have Crystal Reports 2008, and I can use it stand alone, but mostly I access it through Epicor, due to that automatically putting the reports in the desired locations.
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39818474
To link to a subreport parameter

When you link a subreport you can choose any field from the main report including main report parameters.

After selecting the main report field/parameter 2 new boxes appear.
The left box is the mechanism for passing the value.
By default Crystal creates a parameter and names it ?pm_FieldName
If you have a subreport parameter you need to click the combo box and scroll down to it.  It will be named ?ParameterName.
When you do that the box on the right is no longer available because it assumes you have used the parameter in the subreport as it is needed.

Step
Right click the subreport
Click CHANGE SUBREPORT LINKS
Select the field/parameter from the main report
Use the new left hand dropdown/combobox to select the parameter from the subreports
    Don't use the one Crystal provides
Click OK

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 39950071
I've requested that this question be closed as follows:

Accepted answer: 500 points for mlmcc's comment #a39818474

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 

Author Closing Comment

by:Jason Tabor
ID: 39950072
With testing, I found this worked.
0

Featured Post

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.

Question has a verified solution.

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

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…
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 …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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