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!

Constant variable across multiple detail sections

Status
Not open for further replies.

Xprogrammer

Programmer
Oct 12, 2002
14
US
Using Crystal 8, I have a report with 2 detail sections. The sections are conditionally suppressed as a function of flag from a column in the backend. E.g Records A,C,E will use detail A. Records B,D,F will use detail B.

I created a formula the gives the number of records printed out
@position
shared numbervar counter1;
counter1:=counter1 + 1

i have inserted this formula in both detail sections. Instead of the output to be incremented by 1 across he report (as in 1,2,3,4,5,6), I get 1,1,2,2,3,3. What gives?
 
Only put it in one detail section, these formulas increment even when sections are suppressed. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
How's that possible? Intuitively, one would think a section wouldn't be evaluated if it didn't meet the conditional suppression criteria. Or are you saying every section is evaluated, but not printed? Thank you for your help.
 
Exactly, every section is evaluated even if it isn't printed. A similar thing happens with totals. A value on a suppress detail will still be in the total. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top