Solved

Parameter Values from Stored Procedure

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

707 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

14 Experts available now in Live!

Get 1:1 Help Now