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

Group Suppress

Status
Not open for further replies.

Smithsc

MIS
Apr 20, 2007
143
GB
Is it possible to suppress an entire group (including any sections within) based on a field in the detail section?
 
Do you mean if the group contains a field with a certain value? If so, yes. Create a formula like this:

//{@hasA}:
if {table.field} = "A" then 1

Then use group selection (not suppression) by going to report->selection formula->GROUP and entering:

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

This would select all groups that did NOT contain "A". You would then need to use running totals for any calculations across groups, since non-group selected records would contribute to the more usual inserted summaries.

-LB
 
Thanks for the help. Unfortunately it keeps telling me the field cannot be summarized. What have I done wrong?
 
You will have to show the content of the formulas you used.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top