Inside my program I can link a recordset flexible to my report with the following command: Report.Database.SetDataSource DataEnvironment1.rsMyRecordset
But how can I link the Reordset: MyRecordset2 to the subreport ?
Set CRSubreports = session("oRpt".OpenSubreport("ADODemo.rpt"
'Create the ADO Database Connection:
Set oConn2 = Server.CreateObject("ADODB.Connection"
oConn2.Open("ADO DEMO mdb"
set session("oRs2" = oConn2.Execute("Select * FROM ADODemoTable"
Set Database2 = CRSubreports.Database
set Tables2 = Database2.Tables
set Table1s = Tables2.Item(1)
CRSubreports.DiscardSavedData
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.