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

Print report directly from switchboard button? 1

Status
Not open for further replies.

KerryL

Technical User
Joined
May 7, 2001
Messages
545
Location
US
When a user goes to the Reports Menu from the main switchboard and clicks on one of the report selections, the report is opened up for viewing.

But I'd rather send the report directly to the printer so users cannot click on the edit button and mess around with the formatting of the report.

I assume I should assign a "Run Code" option to the menu button and create some standard VB code to print the report? Can I include options within that code? For instance, can I do a print preview first, or set the number of copies to 2, or limit the report to specific pages?
 
Check the code for the buttons - the last modifier on the DoCmd.OpenReport line is probably "acPrintPreview" or something - change it to "acNormal" where ever you want to go directly to the ol' H/P...

The other stuff is a bit klunkier - but look up the OutputTo method in HELP and see if it sheds any light..


Jim Hare
"Remember, you're unique - just like everyone else"
 
If you want a specific report based on a specific record create a prompt query and then just use a print command button.
-Smack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top