Solved

Crystal Report SubReports using Stored Procedures and Passing Same Parameters

Posted on 2009-06-30
1
785 Views
Last Modified: 2012-05-07
I have a Crystal Report which will be using 4 different data sets all retrieved from stored procedures.  Each procedure uses the same parameter value(@FromDate, @ToDate).  Yet, when I load the main report it asks for me to enter a parameter for all procedures.  Is there a way to make the report only ask 1 time for the parameter for each and every subreport?  See ScreenShots below...  Thanks in advance!  

P.S. - If there is a better or more effecient way to make this work I am open for suggestions.  Subreports were the only solution that I saw as being ideal for this client request.  
Report.JPG
Parameter-Dialogue.JPG
0
Comment
Question by:Kyle_BCBSLA
[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
1 Comment
 
LVL 2

Accepted Solution

by:
Kyle_BCBSLA earned 0 total points
ID: 24745327
I figured it out.  Pretty straightforward, just overlooked association.  The way to do this is to have Parameters on the Main Report.  Right-Click on the Subreports and select to Change Links...  Select the Parameter from your Main Report move it to the right side of the dialog.  Then in the bottom left dropdownlist select the associated Parameter which exists in your Subreport.  Do this for each Subreport and you may have one request for all duplicate parameters.  The tricky part is when using a date.  My Stored Procedures parameters were "DateTime" because this is the only date format that SQL Server 2005 accepts.  Hence, when creating the parameters in your Main Report you must make sure that the datatype matches.  "Date" will not work.  You must use "DateTime".  

CASE CLOSED!  haha...  
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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