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!

Page Break and 200 records

Status
Not open for further replies.

ferrisj

IS-IT--Management
Dec 7, 2004
79
US
I want to create a page break at everyone 200 records. Is that possible in Access?
 
You could try adding a Page Break and a counter to your report (Control Source : =1, Running Sum : Over All). Then add a little code:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.txtCounter Mod 200 = 0 Then
    Me.PageBreakX.Visible = True
Else
Me.PageBreakX.Visible = False
End If
End Sub

Private Sub Report_Open(Cancel As Integer)
Me.PageBreakX.Visible = False
End Sub

This is very slow to run.
 
my control source is a query right now, how qould i implement 2 control sources
 
The suggestion is for a Control Source for a textbox, not a Record Source for a report. As far as I recall, you will find more information on Running Sum in Help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top