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!

How can we dynamically link 2 subreports to a report

Status
Not open for further replies.

ajayz90

Programmer
Nov 12, 2002
65
US
How can we dynamically display 2 different reports based on paaremeter selection.

I have report 1 and report 2 and main report.If some one select parameter 1 we want to display report 2 and if he selects parameter 2 we want to select report 2....how can we do so in crystal?

If you have acess to a link I would really appreciate it.....


Thanks in anticiparion.


Ajay
 
It's fairly simple, place each subreport in it's own section (right click the section and select insert section below to create new ones). Right click each section and select format section->X-2 next to Suppress and place code per your parameter, as in:

{MyParm} = 2

would be used in the Report 1 section to suppress it when they chose 2.

{MyParm} = 1

Goes in the subreport 2 suppress formula.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top