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

Error msg when opening crystal through access

Status
Not open for further replies.

rekhatr10

Programmer
Apr 2, 2004
67
US
Hi everyone,

CR version 7
Access 97

I am opeing crystal report through access. I have to set date parameter. I get promoted for the date parameter but when I choose the date I get error messageunable to connect.What am I doing wrong?

This is my code

Dim db As Database
Dim crpApplication As CRPEAuto.Application
Dim crpReport As CRPEAuto.Report

Set db = CurrentDb()
Set crpApplication = CreateObject("crystal.crpe.application")
Set crpReport = crpApplication.OpenReport("H:\PatientSurvey\ageRpt.rpt")
crpReport.Preview

Rekha
 
Does the report work without the parameter?

The error doesn't sound related to the parameter, rather to the connectivity in the report.

Anyway, you must be using the old OCX, you version of Crystal is VERY old, and the OCX is no longer supported, so if you intend to upgrade EVER, do so now:


-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top