Thanks, Frodoman.
That did the trick. Awesome - I appreciate the help!
Main Topics
Browse All TopicsI have a crystal report with two subreports. The subreports are different summaries of the numbers shown on the main report (i.e. should be looking at the exact same data). One of the parameters on the main report is 'Branch', a list of cities where the user picks one which is then used with an 'if' statement in the main report to filter a list of delivery routes (Chicago branch = routes 3,4,7; New york Branch = routes 1,12,19,45,47; etc).
I need to use that same filter on the subreport but can't get it to see that 'Branch' parameter so I can do the same 'if' in the subreport's filter. As 'Branch' doesn't really exist in the data, I can't use the normal subreport link to get it that way.
I can get the subreports to see the 'Branch' parameter to display it using a formula fild such as:
WhilePrintingRecords;
Shared stringvar MyBranch;
MyBranch
but in the select expert it errors on the 'while printing...' line, and yells at me about using a shared variable. I can set it up without the shared, but then it thinks it is defining a new variable and the Branch sting is empty.
Any thoughts?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: frodomanPosted on 2006-07-17 at 08:47:34ID: 17122890
The best process here is to create a Branch parameter *in your subreport* and use that in your Select Expert just like you do in the main report. Rt-click on the subreport and choose 'Change Subreport Links' and you'll be able to link the parameter in the main report to the one in the subreport (so your user doesn't have to answer two parameter prompts).
Shouldn't be any more to it than that, but let me know if you need further assistance.