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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subreports and OCX

Status
Not open for further replies.

Flupke

Programmer
Jun 26, 2002
94
0
0
BE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top