Link to home
Start Free TrialLog in
Avatar of marlind605
marlind605Flag for United States of America

asked on

Microsoft Access 2013 Reports Setting Margins programmatically via VBA

I need to set a report margins when the reports open. I want it set to 1.75".  I think that I am suppose to use Twips in the code. What is the code for setting the left margin to 1.75" or I think 2520 Twips. Does anyone have code for this? Where do I put this code?
Avatar of Phillip Burton
Phillip Burton

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rey Obrero (Capricorn1)

docmd.openreport "NameOfReport",acviewpreview
with Reports!NameOfReport.printer
end with
Avatar of marlind605


Thanks for both replies. The first one solved the problem.