This depends on how you're setting the record selection formula, if it's a canned record selection formula built into the report, then just copy and paste it, if it's dynamic, you'll need to set them both through code.
If you're using parameters, then you'll need to set those in each case too, or link the sub to the main on the parms.
Set session("oRpt" = session("oApp".OpenReport(path & ReportName, 1)
if Request.QueryString("Selection" <> "" then
if Session("oRpt".RecordSelectionFormula <> "" then
Session("oRpt".RecordSelectionFormula = Session("oRpt".RecordSelectionFormula _
& " AND (" & Request.QueryString("Selection" & ""
else
Session("oRpt".RecordSelectionFormula = Request.QueryString("Selection"
end if
end if
but I don't know how to access the subreport in the code.
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.