paulanwarbat
Programmer
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
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