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

Crystal Reports 8 Dev. - Sub-Reports and Grouping

Status
Not open for further replies.

cpslog

Programmer
Oct 16, 2001
1
GB
Guys,

I am having a heck of a time getting the following to work and perform properly.

Env.: VB6 (SP3), SQL 7.0, Crystal Reports 8.0.441 (Dev. Ed.)

I have a main report with 2 groups and 2 sub-reports which are all based on parameterized SQL stored procedures. In every group footer, I place a sub-report and link its parameter to the value in the current group footer. This is extremely slow as it must execute an SQL stored proc. with the passed parameter for every sub-report in every group footer. The sub-reports contain all the data as the main report, except that it is grouped, sub-totalled, and summed in a different manner and is quite complex.

We've tried to pass an ADO recorset to the main report and its sub-reports. In the sub-reports though, we would need a different flavour of the main totals (different grouping, sorting, etc...). How would we be able to manipulate the ADO Recordset to generate the needed information for the sub-reports?

Any help is greatly appreciated.
 
Linked subreports are going to be slow.

Are you sure you can't get rid of them. If it is the exact same data as the main report, just anaylyzed different ways, you might be able to use cross-tabs. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top