Forcing Landscape on DoCmd.OpenReport

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

Guest

Reports!Report1.Printer.Orientation = acPRORLandscape

The above code does a great job on opening a report in the landscape mode.
With "Report1" being the name of the report. My question is how do your write
code to do the same thing but when the name of your report is a variable?

Reports![Report_Name].Printer.Orientation = acPRORLandscape

Does not work. Anyone have a solution they would like to share?

Thanks.
 

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