how to set LeftMargin in Page Setup dialog

Posted on 2003-02-25
Medium Priority
Last Modified: 2011-09-20
I am using Access 2002 VBA.

How can I set the LeftMargin property in VBA so that the change shows in the Page Setup dialog?

When I use the Printer object (ex. Printer.LeftMargin = 1) the change does not show up in the dialog, even if I first open the dialog before setting the property.
Question by:RicB
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 12

Expert Comment

ID: 8019719
i would set the report's margin to the proper result using code, not using the printer object.

getting the idea?


Author Comment

ID: 8019856
Thanks, nexusnation

Actually, I just figured out how to do it by using Me.Printer.LeftMargin within the report code.

But I would still like to know how to set the left margin of a report using code - there is no LeftMargin report property and the Left property is read only.

Any ideas?
LVL 12

Expert Comment

ID: 8021595
i will look now...
LVL 12

Accepted Solution

nexusnation earned 200 total points
ID: 8021611
Ah, i found it. it is called the PrtMip Property. open up Visual Basic and search for the "PrtMip property" in help to find all of the information on it (too much to paste here). you can change all of the print settings with this property...


Author Comment

ID: 8026897
This is exactly what I was looking for!

Thanks for the help, nexusnation.

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question