The link between the main report and the subreport establishes a filter for the subreport. It shouldn't have anything to do with the grouping.
What are you trying to group by?
mlmcc
Main Topics
Browse All TopicsHi,
I'm trying to put together a CR XI sub-report for a report in an ASP.NET application, and I'm having difficulty... I don't understand how fields in the sub-report are linked to the main one. I've tried a couple of things, but had no luck with making data appear.
I know I must be doing _something_ right: I have created a combined lastname, firstname text field in the details section of the sub-report. The data isn't showing, but the comma that I use to separate the fn and ln is showing up twice in the preview, consistent with the exptected number of records to be returned.
I have tried using the Subreport Links dialog to establish links between the main and sub reports. But when I try to establish a link between the only the lastname fields from the main report to the same field in the sub-report, nothing shows when I preview it. In fact, the two commas mentioned above are gone, replaced by only one comma.
Please help-
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.
I think I have figured it out, the grouping seems to be working now.... finally.
Could I ask you to answer this for me? The group by name is simply the index referring to a record in another table. How can I get the name in the table to show instead of the index?
For example, in the Group Name#1 field, I have a single integer between 1 and 9 showing. I'd like this to show the name that the integers are referring to from another table. Instead of 3, show 'Arrhythmia'. Normally, it would be easy to construct a SQL statement, but that doesn't work...
I tried to construct a formula in the 'display string' dialog when I right click on the Group Name #1 field --> Format Object --> Common tab --> Display String, but I'm having issues.
I think I need a formula of some kind.
When I run the report, the Group Name#1 field shows as a "5". I need it to say "Excessive Bleeding", which is record #5 in another table in SQL Server.
(SELECT "OutcomeCode"."OutcomeCode
Obviously the '5' needs to be the Group Name#1 field, so that the OutcomeCodeName changes for each separate group of outcomes. But I'm not sure how to do this.
Thanks
I do have the OutcomeCode table in the report. I dragged it onto the report but nothing appears in the preview... I double-checked the links, deleted them, re-created them and made them all LEFT OUTER JOINS. This is what helped me the last time I was running into a similar problem.
I followed your lead from your post on Friday under CUSTOMIZE GROUP OPTIONS. But I chose 'Use a Formula as Group Name' instead of choosing OutcomeCodeName from the drop down list.
As a formula I simply dragged OutcomeCodeName into the box. It's probably the same as picking that field from the ddl, but thought I'd try it.
I don't know why this is giving me so much trouble. I should just be able to drag the OutcomeCodeName onto the report. The links between the tables should be able to interpret the numbers that are showing up in the Group headers as the corresponding OutcomeCodeName...! What gives?
I've included links to images of the table links and what the report looks like... hopefully it helps.
Image of the table links: http://img117.imageshack.u
Image of the sub-report preview: http://img110.imageshack.u
(all fake testing data)
Thanks again-
I changed the direction, then right-clicked on Group Name --> Format Object --> Display String (Formula) and dragged OutcomeCodeName field onto the editor. Saved / closed it and previewed the report. The groupings remain the same, but the group header is now invisible --> neither the OutcomeCode nor the OutcomeCodeName are showing.
Business Accounts
Answer for Membership
by: jgerbitzPosted on 2007-03-30 at 12:47:39ID: 18826043
Update:
When I remove the GroupBy on the subreport, the names show up fine. Somehow the Group needs to be linked...