Printing from a form

J

JDL

I have a form that has a button. The button prints a report. Is it possible for me to code this button, so that it only prints out the first two pages of the report? How can I do this?

Thanks
 
P

Phoenix

DoCmd.PrintOut acSelection, 1, 1, , 1

The 1e 1 is PageFrom
The 2e 1 is PageTo
The 3rd 1 is Copies

Regards, Michael


JDL said:
I have a form that has a button. The button prints a report. Is it
possible for me to code this button, so that it only prints out the first
two pages of the report? How can I do this?
 
Top