I have a form that has 5 check boxes as well as two buttons, a preview and a print button. Each checkbox corresponds to a different report. I have the preview button working fine, whatever checkbox is select the report will open showing the user. However when I'm selecing the print button I can get the correct report to print fine but I have to open the report and preview it then it will print. I would like to be able to not even open the report and just print it. I tired the following code:
However it just prints the form that the user selects becasue that is what is displayed. Im not sure how to go about doing this so any help would be great.
Code:
DoCmd.OpenReport "BlockStatusRegion4", acViewPreview, "", "", acHidden DoCmd.PrintOut acPrintAll DoCmd.Close acReport, "BlockStatusRegion4"
Comment