You can use the PrintOut action to print the active object in the open database. You can print datasheets, reports, forms, and modules.
The PrintOut action uses the following arguments.
Action argument |
Description |
Print Range |
The range to print. Click All (the user can print all of the object), Selection (the user can print the part of the object that is selected), Pages (the user can specify a range of pages in the Page From and Page To arguments). The default is All. |
Page From |
The first page to print. Printing starts at the top of this page. This argument is required if you click Pages in the Print Range box. |
Page To |
The last page to print. Printing stops at the bottom of this page. This argument is required if you click Pages for the Print Range box. |
Print Quality |
The print quality. Click High, Medium, Low, or Draft. The lower the quality, the faster the object prints. The default is High. |
Copies |
The number of copies to print. The default is 1. |
Collate Copies |
Click Yes to collate the printed copies. Click No if you don’t need to collate the copies. The object may print faster if this argument is set to No. The default is Yes. |
This action is similar to selecting an object and then clicking Print on the File menu. With the action, however, no Print dialog box appears.
Tip If you have particular print settings you use frequently, create a macro containing a PrintOut action with these settings in its arguments.
The arguments for this action correspond to options in the Print dialog box. However, unlike the FindRecord action and Find In Field dialog box, the argument settings aren’t shared with the Print dialog box options.
To run the PrintOut action in Visual Basic, use the PrintOut method of the DoCmd object.
OpenForm Action, OpenQuery Action, OpenReport Action, OpenTable Action, PrintOut Method.