ACC: How to Control the Number of Records Printed Per PageID: Q119075
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article describes a method that you can use to control the number of
records printed per page on a report.
You can control the number of records printed per page on a report by
setting the page break's Visible property. The following example
demonstrates how to print three records per page on a report:
Macro Action
-------------------------------------------------------
SetValue
Item: [PageBreak].Visible
Expression: IIf([TheCounter] Mod 3 = 0, "True", "False")
Report: Test1
--------------------------
Caption: TestReport
ControlSource: Suppliers
Text Box:
Name: Address
ControlSource: Address
Text Box:
Name: City
ControlSource: City
Text Box:
Name: Region
ControlSource: Region
Text Box
Name: TheCounter
ControlSource: =1
Visible: No
RunningSum: Over All
Address City Region
----------------------------------------
49 Gilbert St. London
P.O.Box 78934 New Orleans LA
707 Oxford Rd. Ann Arbor MI
IIf([TheCounter] mod 11 = 0, "True", "False")
For more information about SetValue, search for "SetValue Action," and then
"SetValue Action" using the Microsoft Access 97 Help Index.
For more information about the Visible property, search for "Visible
property," and then "Visible Property (Microsoft Access)" using the
Microsoft Access 97 Help Index.
For more information about the Page Break control, search for "page
breaks," and then "Add a page break to a report" using the Microsoft Access
97 Help Index.
Additional query words: page break
Keywords : kbusage RptsLyt
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 6, 1999