Results 1 to 5 of 5

Thread: Parameter problem with subreport

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Posts
    416

    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))
    ...

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Posts
    416

    Re: Parameter problem with subreport

    The code and report should be correct because they are just upgrade from an old version.

  4. #4
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: Parameter problem with subreport

    I think there is a problem in linking of the main report and sub report.
    Thanks and Regards,

    Muhammad Abbas

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Posts
    416

    Re: Parameter problem with subreport

    After I change to use Dataset instead of Recordset, the problem gone..........

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width