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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print single page 2

Status
Not open for further replies.

dcurtis

Technical User
May 1, 2003
273
US
I have a report I want to print just page 1 of. I tried using the DoCmd.PrintOut command, but haven't figured out where to put it.

I want the user to still be able to hit the print button that is on the tool bar by default, but then have it print just page 1.

Thanks in advance for any help.

----
Access 2002 on a mixed Windows OS network.
 
Try:
Code:
DoCmd.PrintOut acPages, 1, 1

Hoc nomen meum verum non est.
 
In the On Click event of a command button, put code something like this:
Code:
DoCmd.OpenReport "YourReportName", acPreview
DoCmd.PrintOut acPages, 1, 1
DoCmd.Close acReport, "YourReportName"

Hoc nomen meum verum non est.
 
Is there a way to allow previewing on the screen, but then when it's printed restrict it to page 1?

There are times when the users need to view the whole report, but when it's printed only need the 1st page. I don't want them to have to manually make it print page 1 every time (most don't know how, and those who do usually forget to set it).
 
This is the only way I know how to automate the printing of selected pages. Maybe someone else can help with the overriding of the print dialog box Print Range default.....

Hoc nomen meum verum non est.
 
Thanks for your help. Have a star for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top