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!

Query Engine Error ...

Status
Not open for further replies.

Premalm

Programmer
Mar 20, 2002
164
0
0
US
Hi Guys,

This code is giving me headaches. I am getting a Query Engine Error which I run this code on my development machine. I have VS 2003 and CR for .Net. I have Msvcr71.dll and Msvcp71.dll in the system folder and the msm files in mergemodules folder. Any Ideas ?

Dim oRpt As New CrystalReport1
Dim sRptSQL As String = "Select * from PII.CAL_NAMES"
Dim oOleDbConnection As New OleDbConnection("Provider=MSDAORA;Data Source=PIID;User ID=<id>;Password=<passwd>")
oOleDbConnection.Open()
Dim oOleDbData As New OleDbDataAdapter(sRptSQL, oOleDbConnection)
Dim ds As New Dataset1
oOleDbData.Fill(ds, "CAL_NAMES")

oRpt.Database.Tables(0).SetDataSource(ds)
CrystalReportViewer1.ReportSource = oRpt
CrystalReportViewer1.DataBind()

Thanks
Premal

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top