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!

Why is this error, when running a cristal report ?

Status
Not open for further replies.

snehakevin

Technical User
Sep 14, 2003
33
0
0
SG
Dim Report As New CrystalReport7
Dim db As Database
Dim rs As Recordset

Private Sub Form_Load()
Screen.MousePointer = vbHourglass
Report.Application.OpenReport ("xxxxxx.rpt")
Report.PaperOrientation = crPortrait
CRViewer91.ReportSource = Report
CRViewer91.ViewReport
Screen.MousePointer = vbDefault
End Sub
Private Sub Form_Resize()
CRViewer91.Top = 0
CRViewer91.Left = 0
CRViewer91.Height = ScaleHeight
CRViewer91.Width = ScaleWidth
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set db = OpenDatabase(App.Path + "\CONVBELT.MDB")
Set rs = db.OpenRecordset("TEMP")
rs.Delete
End Sub

The error Message is
Error message box caption is: Crystal Report Viewer
Logon failed
Details: Error Code: 0x800401f3


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top