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

Enable/disable sub reports

Status
Not open for further replies.

vbredpgr

Programmer
May 20, 2003
7
US
I have a report which has a subreport in the detail section. I have a parameter for the user to select whether they want a summary or a detailed version of the report. When they select detailed it runs and shows the subreport. When they select summary, it hides the details including the subreport, however, it still runs the stored proc upon which the subreport is based.

I want to keep it from running this stored proc when they choose summary. Is there anyway to do this?

Thanks
 
Not if you are using a subreport - all data for a report (including sub reports) is run when you execute the report

Only way around this I have found is to have a "drill through" button which runs the detail section on its own using the navigation property of a text box

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top