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!

page setup

Status
Not open for further replies.

brendamg

Programmer
Aug 12, 2003
5
US
access 2000 reports
How to code page set in access VBA
 
HI,
Can you let us know exactly what it is you want to do? To get you started, most report properties can be set in the report's open event.

HTH, [pc2]
Randy Smith, MCP
California Teachers Association
 
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.
 
Hi,
Here is a link to a downloadable file that has code samples on how to accomplish this:
(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, [pc2]
Randy Smith, MCP
California Teachers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top