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!

Suppressing the first group on a page

Status
Not open for further replies.

Jww193

Programmer
Apr 8, 2003
7
US
Hi All,

I've been trying to suppress the first goup on N groups on a page with little success (GH2). I put a formula in the page header set to "Yes", then I Suppress the GH2 if the value = yes. The first detail line resets the formula to no, so that from then on the group should print. Seems like it should work. But....
I display the formula in the page hdr and the group header and they both say yes but the group header is not suppressed! What's more strange is that If i resize the GF1, section sometimes it suppreses and sometimes it doesn't. It seems to me that there is a timing problem going on.

Any suggestions?
 
If you want to suppress the first group shouldn't you be using gh1?

--------------------------------------------------------
I guess I should rephrase the question, I want to suppress the first occurrence of GH2 on a page.

Yes there is a GH1 and it is not suppressed. What I am doing is putting the GH1 and Gh2 group names in the page header, after which comes a line of headings.

The problem with this is that when groups change more than one a page, you need to display the group name.

I like to have the group names followed by a heading line for that section. So you also show the GH2, but only when it's not the first group on the page. Otherwise the heading repeats twice. I can of course format the section to spit a new page in GF2, but this causes a lot of unnecessary white space for small groups.
 
You may want to move the "no" from the detail to a second GH2 section. There may be a little "piece" of a detail printing that sets it to yes after the report header.

You can do it all in the suppression formula for the new section:

value = false;
true

That should eliminate your sizing/timing problem.

Lisa
 
Thanks for all the Posts everyone. I added the reset formula to the page footer as well and it seemed to fix the timing problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top