Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
4
153 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
  • 3
4 Comments
 

Accepted Solution

by:
biko071598 earned 50 total points
ID: 1466597
I am assuming that you are using the control and not the crw-api.

Use the

Report.StoredProcParam(Parameter Array Index%)[= newParameter$]
for each parm.

Note that the parms are in the same order as listed in your report.

Hope that helps

0
 

Expert Comment

by:biko071598
ID: 1466598
OOOPS...REREAD YOUR QUESTION.  If you're trying to get the result of a stored proc via parms...don't.  Always return data from the stored proc's resultset...i.e. have the sp return data in a table like fashion.

 
0
 

Author Comment

by:mallow
ID: 1466599
actually, i am using crystal report 5.0 the application, and i need the paremeters to display only on my reports, because my parameters are actually start date and end date, i only need to display these on my reports, you know how?
0
 

Expert Comment

by:biko071598
ID: 1466600
yes....modify the sp to return the parms in the resultset...then use them as datafields....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 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…

932 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

12 Experts available now in Live!

Get 1:1 Help Now