ACC2000: How to Print Odd or Even Pages of a ReportID: Q209508
|
This article describes how to print separately the odd and even pages of a report for duplex printing or to print reports with different margins for binder storage.
The best way to print separately odd and even pages of a report is to set up a form that prompts you for the pages to print (odd or even) and then calls a macro to print the report. The form in the following example has a text box control to hold the value "odd" or "even" and a command button to print the report.
NOTE: When you use the following steps to print even pages, all the odd pages generate blank pages (and vice versa). Whenever you implement this routine, your report generates blank pages between each printed page.
Macro Name Condition Action
----------------------------------------------------------
Print OpenReport
TestOddEven Forms![Print Odd Even Pages] _
![PrintPages]="Even" And _
Page Mod 2=1 CancelEvent
Forms![Print Odd Even Pages] _
![PrintPages]="Odd" And _
Page Mod 2=0 CancelEvent
Print Actions
----------------------------------------------------------
OpenReport
ReportName: Customer Labels
View: Print Preview
OddEven.TestOddEven
Additional query words: every other page left right
Keywords : kbusage kbdta RptLayou
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: June 10, 1999