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

How can I limit number of lines in a subreport

Status
Not open for further replies.

acamusc

Technical User
Apr 7, 2003
21
Hi pals!
I am having problems with a sub-report that pushes out of page the lower part of the main report which contains the totals and summaries.
How can I keep the subreport with no growing(it is set Not growing, no shrink) in size and accepts just 23 lines and if it excedes print a second page?
Thanks in advance
Kindly
Acamusc
 
Place a textbox (txtCount) in the detail section
Control source: = 1
Running Sum: Over All

Place an invisible page break (pbr) right below the relevant data.

In the code:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
pbr.Visible = Not (txtCount Mod 23)
End Sub

Good luck


[pipe]
Daniel Vlas
Systems Consultant

 
Thank you Dan, I did it step by step, but now I get 1 line per page.
I don't think I forgot something, anyway I will keep trying.
Thanks again.
acamusc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top