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!

Adding a new line conditionally

Status
Not open for further replies.

mg712

Programmer
Aug 5, 2003
8
US
I would like to add a new line after the record count gets to a known number. Once it does I want to reset the record count and start again. I'm sure how the formula should be set up to do this or where it should go. Thanks in advance for any help.
 
so you want to add a line say after every 100 records

Add the line that you want to the detail section of your report but in the conditional suppress place the following formula

WhilePrintingRecords;
RecordCount/100 = 0;

just change the divisor accordingly...no need for a reset

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Insert a new detail section and draw your line there. Then use the following as the suppression formula for the section the line is in:

remainder(recordnumber,100) <> 0 //change the &quot;100&quot; to whatever recordnumber you want the line to repeat on.

-LB
 
oops! yes My formula should be

WhilePrintingRecords;
RecordCount/100 <> 0;


Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top