Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
4
156 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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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