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

Subreport record selection

Status
Not open for further replies.

Ladyhawk

Programmer
Jan 22, 2002
534
AU
How do I make the record selection formula to be the same as the main report selection formula?

Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Copy and Paste?

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.

-k
 
I am setting it through asp code...

Set session("oRpt") = session("oApp").OpenReport(path & ReportName, 1)

if Request.QueryString(&quot;Selection&quot;) <> &quot;&quot; then
if Session(&quot;oRpt&quot;).RecordSelectionFormula <> &quot;&quot; then
Session(&quot;oRpt&quot;).RecordSelectionFormula = Session(&quot;oRpt&quot;).RecordSelectionFormula _
& &quot; AND (&quot; & Request.QueryString(&quot;Selection&quot;) & &quot;)&quot;
else
Session(&quot;oRpt&quot;).RecordSelectionFormula = Request.QueryString(&quot;Selection&quot;)
end if
end if


but I don't know how to access the subreport in the code.

Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Never mind... figured it out.

Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top