Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a field value to a stored procedure parameter 1

Status
Not open for further replies.

MaryValles

Programmer
Dec 23, 2003
3
US
I am using Crystal 8.5 Professional. Data is stored in SQL Server 2000. I have a main report that has customer number. I need to pass the value of customer number to the subreports stored procedure parameter. How can I do this?
 
Link the customer number from the main report to the stored procedure parameter in the subreport.
 
How do I do that? The stored procedure parameter doesn't show up in the list of fields to link.
 
Make sure the customer number from the main report is the same data type as the parameter in the subreport. When you select the main report field to link, only fields of the identical data type appear in the fields to link to list.
 
The datatypes are the same. For instance, if I inlude the parameter in the select statement (i.e. @AccountInputNumber AS AccInputNo) it appears in the list for available fields to link to. The fieldname (@AccountInputNumber) that is under the parameters section in subreport does not show up in the list.
 
Hello.

I have the same problem.
Can you get finnaly the solution?

Thanks,
Eva Janakieff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top