CR9, VB6. Created report in CR9 using OLE DB connection from a SQL stored procedure. Works fine in CR9. Imported into VB6 app, at the line CRViewer.ViewReport, receive Login Failed, MS OLE DB Provider for SQL Server, and the description being the subject line.
Temp work around to verify that the report produces data is to insert line:
report.Database.Tables.Item(1).SetLogOnInfo "ServerName", "DBName", "userid", "pwd"
before the CRViewer.ViewReport line. What's wrong with my report connection? Thanks for any help provided.
Temp work around to verify that the report produces data is to insert line:
report.Database.Tables.Item(1).SetLogOnInfo "ServerName", "DBName", "userid", "pwd"
before the CRViewer.ViewReport line. What's wrong with my report connection? Thanks for any help provided.