Parameter problem with subreport
Hi All,
I have a CRXI report which accept some parameters.
One of the parameter is used to link to a subreport.
I programatically set the parameter value, but when I preview the report, CR still popup a prompt for the parameter of the subreport, which should be the one linked to main report already.
How can I get rid of the prompt?
Thanks!
Code:
Dim RptApp As CRAXDRT.Application
Dim Rpt As CRAXDRT.Report
Rpt = RptApp.OpenReport("abc.rpt", CRAXDRT.CROpenReportMethod.crOpenReportByTempCopy)
...
Rpt.ParameterFields(2).AddCurrentValue((gstrID))
...
Re: Parameter problem with subreport
If Crystal is prompting for the parameter value of the subreport then the linking between the main and subreport is incorrect.
Re: Parameter problem with subreport
The code and report should be correct because they are just upgrade from an old version.
Re: Parameter problem with subreport
I think there is a problem in linking of the main report and sub report.
Re: Parameter problem with subreport
After I change to use Dataset instead of Recordset, the problem gone..........:confused: