I have a report that typically pulls a small amount of data per instance since it is run per client ID. The main reports runs very quickly. When adding a needed subreport the report then takes a long time and appears to cycle through the entire database, rather than being narrowed by the selection criteria set in the subreport links.
I have an older/simpler version of the report with the exact same subreport, and exact same subreport linking and it runs in a reasonable time. One thing I noticed is that if I view the sql query for this old report it prompts for the 2 parameters which are set to link to the main report and then the sql query shows that link parameter criteria with the entered values. In the new report, it too prompts for the parameters but the link parameter criteria is not shown in the sql query.
The main difference between the reports is that the old one was created entirely with the graphical database expert, and the new one is based entirely on a sql command table.
I have deleted and recreated the subreport, checked the link parameters, verified that think linking created a record selection formula, etc.
It appears as if the record selection formula is being ignored when the subreport runs, as it should only process through a small number of records, not millions.
Any ideas on how to resolve this?
I have an older/simpler version of the report with the exact same subreport, and exact same subreport linking and it runs in a reasonable time. One thing I noticed is that if I view the sql query for this old report it prompts for the 2 parameters which are set to link to the main report and then the sql query shows that link parameter criteria with the entered values. In the new report, it too prompts for the parameters but the link parameter criteria is not shown in the sql query.
The main difference between the reports is that the old one was created entirely with the graphical database expert, and the new one is based entirely on a sql command table.
I have deleted and recreated the subreport, checked the link parameters, verified that think linking created a record selection formula, etc.
It appears as if the record selection formula is being ignored when the subreport runs, as it should only process through a small number of records, not millions.
Any ideas on how to resolve this?