Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
2
166 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
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 50 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

758 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

22 Experts available now in Live!

Get 1:1 Help Now