Stop printing a section after so many prints

wan2fly99

Registered User.
Local time
Today, 13:39
Joined
Feb 7, 2005
Messages
53
Scenerio: Invoice table --- invoice detal table based on invoice number 1 to many relation

Have the main report that show invoice information.

Within main report in detail section I have the sub-report.

The sub-report will print all the invoice details info. Could be many detail lines.

In the subreport I have 1 detail section where this prints.

I would like to print the detail section in the sub-report say 5 times and then stop even though there are more details lines (invoice detail info) for that invoice.

I was trying to put some code in the subreport detail section, supress option to make it stop
printing after so many displays

TYrying to figure out how to put a counter and say after five times enable the supress option to take effect

Would thisbe possible

Any help would ben appreciated

Thanks
 
use a count

Create a running total for your details section in the sub report that resets at each change in the group. Then, in the sub report detail section, use the section expert to enter the formula {#RunningTotalField} > 5 to supress all records after 5 have been printed.

regards,
Karen
 

Users who are viewing this thread

Back
Top Bottom