I have written a report in access VBA, i.e. actually coding the header, detail and footer sections. The report needs to be printed in landscape and on legal size paper. I also need to code the page set for the margins. Since the report cannot be done in the design view and has to be coded, I need to code the page setup.
(scroll down until you see "margindemo.zip"
I downloaded it without any troubles. After unzipping it, you will need to convert to Access 2000, unless you are using Access 97. Take a look at the Modules section. You will see a number of code snippets including "basSetMargins".
HTH,
Randy Smith, MCP
California Teachers Association
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.