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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to pass query to crystal report using visual basic

Status
Not open for further replies.

arunrote

Programmer
Oct 10, 2001
6
IN
how to pass query to crystal report using visual basic.I have written below code,i am getting error saying subscript out of range.What may be the reason,how to over come with this problem.Pls some help me in this.

SQLStr = "select ROAD,YEAR from PUPIL"
Set pAdors = New ADODB.Recordset
pAdors.Open SQLStr, pAdoCon,adOpenKeyset,adLockOptimistic
pReport.Database.SetDataSource pAdors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top