?
Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
2
Medium Priority
?
172 Views
Last Modified: 2010-05-03

hi there, i am using crystal report 5.0, and i have a stored procedure from informix,
that asks for two parameters, when i run my report can i get the value of the paramaters
that i asked from the stored procedure? how can i do this?  

0
Comment
Question by:mallow
[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
2 Comments
 
LVL 2

Expert Comment

by:percosolator
ID: 1466590
Yes, you can pass parameters to a SP.


0
 
LVL 1

Accepted Solution

by:
BlackAndWhite earned 100 total points
ID: 1466591
No you cannot access the stored procedure parameters directly.  You have to include the stored procedure parameters in the select statement.

Say your select statement in stored procedure is
"Select * from tblProducts" then

change it to
"Select *, @ProductCode, @ProductId from tblProducts"

where @ProductCode, @ProductId are the parameters.

I am definite that you cannot access stored procedure parameters directly.  I even talked to the Crystal tech support on this.

Note: To set the values of stored procedure parameters from vb, using crystal activex, use .StoredProcParam property.


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

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