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

question on redirecting report connection during run time

Status
Not open for further replies.

paulanwarbat

Programmer
Sep 27, 2005
1
PH
Hi! i have a question. My reports are integrated in visualbasic. and Im using the OLEDB SQL connection. How can I redirect my report to .UDL during runtime? please help me with this problem. Im trying to use this code but im getting an error that the "database has not yet been open"

crPincodeDtl.Database.Tables(1).Location = "d:\MyProjects\LCS_Report(kaye)\LCSSQL.udl"
crPincodeDtl.Database.Tables(2).Location = "d:\MyProjects\LCS_Report(kaye)\LCSSQL.udl"
crPincodeDtl.Database.Tables(1).SetLogOnInfo "d:\MyProjects\LCS_Report(kaye)\LCSSQL.udl"
crPincodeDtl.Database.Tables(2).SetLogOnInfo "d:\MyProjects\LCS_Report(kaye)\LCSSQL.udl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top