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

Subreport question

Status
Not open for further replies.

cjany

IS-IT--Management
Nov 3, 2004
72
US
My main report pulls court cases set on a given date and in a given court and the records are grouped by participant ID. My subreport pulls other cases related to the same Participant ID. Currently, my report shows all cases whether the participant has others case or not.

I do not want to see the cases on my report if the participant only has one case. I only want to see if they have other cases.

Any suggestions?
 
Hi,, Is there some other reason you are using Sub-Reports?
If not, then use just a main report and link the table with the cases to itself, by whatever the key field is..

Then have it group by Participant ID - you can then have it supress the group and its details if the Count(caseID) < 2





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
You can't suppress on the basis of data found in a subreport. You can return the result using a shared variable, but the value cannot be used until the next section down.

Like Turkbear, I wonder why you need a subreport. You could add cases again, as an alias, and make the link using Participant ID. If the link is Equals rather than Left OUter, this would automatically exclude those with just one case.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top