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

Display Group Header only if there are Details 1

Status
Not open for further replies.

marc79

Programmer
Apr 5, 2005
18
PH
Hi,
I'm new to Crystal Reports but have been assigned to implement the following requirement. The report lists Supervisors (Group Header) and their Employees (Detail). Now, the client DOESN'T want the following scenario:
Having the Supervisor at the end of the page without any Employees, since those are listed on the next page.

What they want is that the Supervisor will be printed on the next page together with the Employees. However, we don't want to "keep group together" for the whole report per se (only for the above scenario).

How do i go about implementing this?

Appreciate any help i can get. Thanks.
 
Please see thread767-947312 for one solution.

-LB
 
Thanks for the link lbass. Shall try that out.
 
I have a follow up question. How can i do this in a subreport? I noticed that the logic you suggested, will put a reset formula in the page header. But there are no page headers in sub reports right? Is there a way to get around this? I was thinking of placing the reset formula in the page header of the main report and sharing the linecounter variable, but it didn't work.

Any suggestions?
 
Create a fake page header in the subreport. First create a formula that includes all records in the sub, e.g.,

whilereadingrecords;
1

Insert a group on this, and set it to "repeat group header on each page". Remove the groupname and use this new header for your reset formula.

-LB
 
Thanks lbass. Was able to fix my problem using your suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top