Print order

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following code (with the help of Doug)

For intPage = Application.Reports(strDocName).Pages To 1 Step -1
DoCmd.PrintOut acPages, intPage, intPage
Next intPage
DoCmd.Close acReport, strDocName
End if

What I would like to do is print the report which is 3 pages long in the
following order!

Page 1 becomes page 2 (when printed)
Page 2 becomes page 1
Page 3 becomes page 3
 
I have the following code (with the help of Doug)

For intPage = Application.Reports(strDocName).Pages To 1 Step -1
DoCmd.PrintOut acPages, intPage, intPage
Next intPage
DoCmd.Close acReport, strDocName
End if

What I would like to do is print the report which is 3 pages long in the
following order!

Page 1 becomes page 2 (when printed)
Page 2 becomes page 1
Page 3 becomes page 3

As long as you already know you have a 3 page report there should be
no need to cycle through the pages (nor open the report and close it).

DoCmd.SelectObject acReport, strDocName,True
DoCmd.PrintOut acPages, 2, 2
DoCmd.PrintOut acPages, 1, 1
DoCmd.PrintOut acPages, 3, 3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top