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

How to supress group header conditionally

Status
Not open for further replies.

sudkool

Programmer
Jul 17, 2006
6
US
Here is my scenario. I have 3 Groupings, lets say Group A, B, and C.

Group A
Group B
Group C
Detail
Group Footer C
Group Footer B
Group Footer A

Group A and Group B will be starting from new page, but not group C. I am having problems when Group C change values on same page. Like on one page I have

Group A -Header
Group B -Header
Group C (value 1) header
Detail
Group C (value 1) footer
Group C (value 2) header
Page footer
and then on next page, same Group C (value 2) header and then detail. I am not sure how to check like, if Group C (value 2) header does not have detail for it or Group C (value 2) header is followed by page footer then skip that header and put Group C (value 2) header on new page. Could someone please guide me how to code it please.

Please let me know if I could not explain my scanrio properly and I will try to explain it in different way.

Thank you in advance.

 
Groups don't appear if there is no data for them. If there is no suitable data, would it be possible to reject the unsuitable records at record selection?

THere is also group selection, Report > Selection Formulas > Group. And if you right-click on a group section, it gives you the option to keep the group together, meaning it will start a new page if it does not fit on the current page. Does that help?


It is a good idea to say which version of Crystal you're using.

[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