I have a form with a button and I put VBA code into the on click event.
DoCmd.OpenReport."FormName"
When I save and click the button, I expect it to open the report, but it prints the report to my default printer, never opens it.
I can't find out why it's printing instead of opening. Eventually I'd like to have the form filter based on a combo box, but right now I can't even get it to open.
OpenReport
. See Help (press F1 on OpenReport in your code). – ComputerVersteher