What exactly are you trying to do? DoCmd.PrintOut is not used to print reports, it used to print "pages" of a form or datasheet, from within that form or datasheet.
Well basically, from a switchboard, i want to print a report without having to open it, go to filed and then click print. Ideally i just want it to open and print on its own.
In form view, right click on the button.
Select properties.
When the properties box appears, select the events tab. Click in the box next to On Click and select Event Procedure.
Next, click on the elipses (3 dots) button to view and edit the code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.