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

Supress Group Header w/supressed records present

Status
Not open for further replies.

diane55

Programmer
Dec 14, 2004
20
0
0
US
thread767-1068492

I need to inquire more on the response posted in the thread noted above by lbass.

What if I want to supress the group header and there are records in the group they are just supressed?

Crystal X

Any thoughts D
Thanks! :)
 
What are the criteria you are using to suppress the detail records? Let's say your suppression criterion was:

{table.field} = 'A'

Then you could create a formula {@notsuppressed} like this:

if {table.field} <> 'A' then 1

Then suppress the group header with this:

sum({@notsuppresssed},{table.groupfield}) = 0

There might be a simpler way, but we'd have to know your suppression criteria.

-LB
 
({@FetchID} <> {OfcrCmd.SUP_ID}

The above is the criteria for supression.
The fetch formula is based on the maxvalue largest_id of the record - returns the id thru a subreport. The compare is then to the coulmn in the suptable on the ids.
If not equal the record is supressed. When the record is supressed the Group Header needs to supress also.

Hope that helps to clarify.
D
 
where is the subreport located? It would have to be in a section above the one you want to suppress. Please also show the content of {@FetchID}.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top