WindowsXP Pro, VB 6, MSSQL Server 2000, Crystal Reports 9
I have a report, which includes a subreport. I receive the following error when I use the LogOnServer method to log the main and subreport into my MS SQL2000 database. Any ideas why am I getting this error?
Error -2147189176 – Logon failed.
Details: IM002:[Microsoft][ODBC Driver Manage] Data source name not found and no default driver specified
Sample Code:
Dim CRXApplication As CRAXDRT.Application
Dim MainReport As CRXDRT.Report
Dim SubReport As CRAXDRT.Report
Set CRXApplication = CreateObject("CrystalRuntime.Application"
Set CRXReport = CRXApplication.OpenReport(App.Path & "\Reports\ClaimDetail_tst.rpt", 1)
Set Subreport = CRXReport.OpenSubreport("AssociatedCoverages.rpt"
Call CRXReport.Database.LogOnServer("P2SODBC.DLL", "DEVSERVER", "DB1", "id", "password"
Call Subreport.Database.LogOnServer("P2SODBC.DLL", "DEVSERVER", "DB1", "id", "password"
P.S. I also get this error when a change "P2SODBC.DLL" to "PDSODBC.DLL".
I have a report, which includes a subreport. I receive the following error when I use the LogOnServer method to log the main and subreport into my MS SQL2000 database. Any ideas why am I getting this error?
Error -2147189176 – Logon failed.
Details: IM002:[Microsoft][ODBC Driver Manage] Data source name not found and no default driver specified
Sample Code:
Dim CRXApplication As CRAXDRT.Application
Dim MainReport As CRXDRT.Report
Dim SubReport As CRAXDRT.Report
Set CRXApplication = CreateObject("CrystalRuntime.Application"
Set CRXReport = CRXApplication.OpenReport(App.Path & "\Reports\ClaimDetail_tst.rpt", 1)
Set Subreport = CRXReport.OpenSubreport("AssociatedCoverages.rpt"
Call CRXReport.Database.LogOnServer("P2SODBC.DLL", "DEVSERVER", "DB1", "id", "password"
Call Subreport.Database.LogOnServer("P2SODBC.DLL", "DEVSERVER", "DB1", "id", "password"
P.S. I also get this error when a change "P2SODBC.DLL" to "PDSODBC.DLL".