In Crystal Reports 8.5, I have a report with a subreport that run fine in Crystal Reports itself.
When I invoke the report from Visual Basic 6 through OCX, the report (and all others) run fine only if I remove the subreport.
This is my code:
crpt.ReportFileName = "rptInkomstenStortingen.rpt"
crpt.SelectionFormula = "{tblTV_Sessies.TVSE_Begintijd} >= #04/30/2006#
When trying to invoke the report with the subreport, I get the message "Run time error '20535'. Error in file [Name Report]. Unable to connect: incorrect session parameters".
The database I use is a database password-protected Access database.
The report is linked through DAO.
The strange thing is that everything runs fine when using Crystal reports itself or when invoking the report without the sub-report.
Can someone please help me?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel
When I invoke the report from Visual Basic 6 through OCX, the report (and all others) run fine only if I remove the subreport.
This is my code:
crpt.ReportFileName = "rptInkomstenStortingen.rpt"
crpt.SelectionFormula = "{tblTV_Sessies.TVSE_Begintijd} >= #04/30/2006#
When trying to invoke the report with the subreport, I get the message "Run time error '20535'. Error in file [Name Report]. Unable to connect: incorrect session parameters".
The database I use is a database password-protected Access database.
The report is linked through DAO.
The strange thing is that everything runs fine when using Crystal reports itself or when invoking the report without the sub-report.
Can someone please help me?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel