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

Repeat Group Header On Each Page 3

Status
Not open for further replies.

johnstrang

Technical User
Dec 8, 2003
60
CH
A Warning![/color red]
If you check the "Repeat Group Header On Each Page" box in the "Change Group" section, it also repeats any variable initialisation formulas you may have in the group header (even if they are in a separate section from the header text).

I discovered this today after spending a long time wondering why my totals were wrong.

I had the text in GH1a and the formulas in suppressed section GH1b.

To overcome the problem I had to include the formulas in the Group Footer instead, and initialise the variables in the Report Header.

Hope this will help someone!

John
 
Actually, you need to keep you initialization formulas in the group header, and add a line of code:

WhilePrintingRecords;
If Not InRepeatedGroupHeader then
Numbervar MyVar:=0

The formula has the effect of only initializing the variable on the first group header.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
dgillz,

Yours is a neater solution, thanks - another useful tip to add to my collection!

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top