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!

Subreport does not refresh

Status
Not open for further replies.

haneen97

Programmer
Dec 10, 2002
280
US
Hi,

I have a main report and two subreports. The main report has only the two report hyperlinks as I built them as an on demand reports. When I preview the main report and click the link of either report; I don't get any data. But if I run each subreport separately; the data displays fine. I tried to re-link but it did not help.

Please help.

Thanks

Mo
 
Go into the subreports and check the Report->Edit Selection Formulas to see waht is in there for both the linking (this is where it is placed), and any other criteria.

The menu system will vary with versions of Crystal, and you should at least post your software version when requesting technical assistance on any product.

When you run the subreports seperately, are you using the same parameters?

I'd guess that the record selection is the problem, your expecting some type of linking operation and getting another.

Remember that thsi can be manually edited.

-k
 
And you are using at least one field in your main report? If you ONLY have subreports, they won't appear in preview if the main report uses no fields.

-LB
 
Sorry about not posting the version, I am using 8.5. The sub report selection crieria has only my date and time parameters. No linking criteria there. Am I suppose to have a link between the main form and the subforms? I don't have any database fields on the main report now.

Thanks

Mo
 
Reimporting subreport problem

I'm using Crystal Reports 10.
I have a Container report which has parameters. It has a subreport which is basically the same report as the Container report except different parameter values are selected. When I added the subreport is was named differently to the container report.

The reports are both created from business views and use both business view parameters and report parameters. I have linked 7 of the 8 report parameters in the subreport to the Container report. I can run these reports without any problem.

However, if I re-import the sub-report and run it, only data in the container report is returned. The subreport just displays the headers.

If I don't link the parameters in the subreport to the container report then there is no problem re-importing the subreport and re-runniing it.

Does anyone have any idea why this could be happening and if there is a work around.

I eventually need to add 20 more identical subreports to the container report so would like to be able to link the majority of the parameters in the sub-reports to the container report parameters.

Hope this makes sense and that someone can help out.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top