?
Solved

Crystal report command parameter via table

Posted on 2011-03-21
1
Medium Priority
?
609 Views
Last Modified: 2012-05-11
Is there a possibiliy of passing values from a regular table as a parameter value in crystal report command?

For example: table Ordertrack (with fields: originatorid, requestdate)

Sql Command:

Select * from EmployeeeLoan where EmployerID={?@originatorid} and LoanDate >={?@requestdate}.

We cant join these 2 tables together but using a sql command would be most efficient if the command can accept values from the Ordertrack table for its parameters.
0
Comment
Question by:ITDeptAtPCS
[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 26

Accepted Solution

by:
Kurt Reinhardt earned 1000 total points
ID: 35182111
In other words, you want to use one table as the source for the List of Values with a dynamic parameter.  The short answer is no.  Dynamic parameters aren't compatible with SQL Commands. That being said, if you capture the dynamic parameters in a container report, you can pass them to a subreport that uses the command.   So, build a blank report against one table and create dynamic parameters against that table.  Then, create a subreport based on the command and link the main report to the subreport based on the parameter values in the main to the parameter values that exist inside the command.

~Kurt
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

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. …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 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