How to enable automatic Paging for Access RePort Printing

Source: Internet
Author: User
Problem: Automatic paging after a certain number of lines are printed on each page Method 1: Add a paging character and write the following code in the Report code interface: Response subject _ Format (CancelAsInteger, FormatCountAsInteger) RowsInPage7rowrow + 1

Problem: Automatic paging after printing a certain number of lines per page Method 1: Add a paging character and write the following code in the Report code interface: OptionCompareDatabase DimrowAsLong DimRowsInPageAsInteger PrivateSub subject _ Format (CancelAsInteger, FormatCountAsInteger) rowsInPage = 7 row = row + 1

Problem:

Per pagePrintAfter a certain number of rowsAutomaticPaging

Method 1:

Add a paging character inReportsWrite the following code into the code interface:

OptionCompareDatabase
DimrowAsLong
DimRowsInPageAsInteger
PrivateSub subject _ Format (CancelAsInteger, FormatCountAsInteger)
RowsInPage = 7
Row = row + 1
Ifrow> = rowsinpagettings
Me. PageBreak18.Visible = True
Row =-1
Else
Me. PageBreak18.Visible = False
EndIf
EndSub

Method 2:

InReportsWrite the following code into the code interface:

OptionCompareDatabase
DimrowAsLong
PrivateSub subject _ Format (CancelAsInteger, FormatCountAsInteger)
Row = row + 1
IfMe. Section (acDetail). ForceNewPage = 1 Then
Me. Section (acDetail). ForceNewPage = 0
Else
IfrowMod7 = 0 Then
Me. Section (acDetail). ForceNewPage = 1
Row = 0
EndIf
EndIf
EndSub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.