Dim CRApp As New CRAXDRT.Application
Dim CRRpt As New CRAXDRT.Report
Dim CRTbl As CRAXDRT.DatabaseTable
Set CRRpt = CRApp.OpenReport(App.Path & "\Reports\Products.rpt)
CRViewer.ReportSource = CRRpt
CRViewer.ViewReport
I am using Password Protected Access Database, Report show only those records which were recorded before report designing. On Execution the code given above ,there is no error. While Refreshing report pressing refresh button from
Report Viewer causes an error dexcribed as under:
Logno Failed.
Details: ADO Error Code: 0x80040e4d
Source:Microsoft JET database Engine
Description: Not a Valid Password
SQL State: 3031
Native Error: -124782449