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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using stored procedures with subreports

Status
Not open for further replies.

tamarabotta

IS-IT--Management
Jun 26, 2001
3
US
I am new to subreports. I need to write a report that contains a linked subreport. I use Sybase and Crystal Reports 8.5.
I wrote a simple procedure that calls another procedure inside but, when I called it from Crystal, I noticed that only the result set returned from the main procedure is available to the report.
How can I implement the main report and the subreport using the 2 sp's?

Thank you.
Tamara
 
Crystal will only read the last resultset returned from a stored procedure.Don't call your subreport stored proc from your main stored proc, just insert a subreport into the main report and set it's datasource to the subreport stored proc. Then set the subreport links ie: link parameters from the sub report to fields in the main report

RWJ
 
Hi,

anyone know how can calling a stored procedures(in vb) when creating a new crystal report at run time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top