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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a report go right to the printer w/acDefaultView

Status
Not open for further replies.

raf

Programmer
Apr 10, 2000
14
US
When I use DoCmd.OpenReport with the 3rd parater as acDefaultView&nbsp;&nbsp;(Or whatever it is EXACTLY, I'm not near the code right now :))the report still goes into a Preview.&nbsp;&nbsp;The documentation I have says that the default is print.<br><br>I am able to force it to print via a macro using &quot;Print&quot; when the form opens, but ....<br><br>Is there some way to see what acDefaultView is, or to change it, or another defined constant to use in DoCmd.OpenReport?<br><br>Thanks<br><br>-- raf
 
&quot;acViewNormal&quot; is the parameter you need<br><br>&quot;acPreview&quot; is for previewing<br><br>Use it like this:<br>DoCmd.OpenReport &quot;rpt-DeliveryNotePackingList&quot;, acViewNormal <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top