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!

Error message using RDC & RPT (VB)

Status
Not open for further replies.

marani

Programmer
Jun 6, 2002
12
0
0
FR
I put in the general declaration the following lines
'Note CRAXDRT is referenced
Dim CRXA As New CRAXDRT.Application
Public report As New CRAXDRT.report

And in the btnPrint_click()
Set report = CRXA.OpenReport("c:\myreport.rpt")

The I got error message
"Object variable or With block variable not set"

Help please!


 
I use the same declarations but I use "Dim" instead of the "Public" on the report. Try this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top