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!

page break

Status
Not open for further replies.

VBALearner

Programmer
Jun 28, 2002
10
US
I need some help to write code in the detail section

If rank = 38 then do a page break.

Thanks,
EVA
 
Add a pagebreak to the bottom of your Detail section. In the Format Event for the Detail section put this code. Change the name of the pagebreak to the name of yours.

If Me.Rank = 38 Then
Me.PageBreak.Visible = True
Else
Me.PageBreak.Visible = False
End If


Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top