page break

steve111

Registered User.
Local time
Today, 11:59
Joined
Jan 30, 2014
Messages
429
hi,

is it possible to force a page break after 15 line items

thanks
steve
 
Yes, assuming you already have your line numbers control set up.

Add the Page Break underneath your line item controls -- then in the OnFormat event of the section holding your controls and pagebreak, add the following.

If Me.txtLineNums.Value = 15 Then
Me.PageBreak.Visible = True
Else
Me.PageBreak.Visible = False
End If
 
thank you

that is great

can it also be done by counting the number of lines as some of my reports don't have LINE number

what I do have is a field called productno
each productno is a separate line
steve
 
Last edited:
The easiest solution is to add the line numbers control to your reports then make txtLineNums invisible under properties -- the event code will still work.

Regards
Melt
 

Users who are viewing this thread

Back
Top Bottom