I have a pop-up form that allows users to filter a report. On the form, I have a Print command that prints out the report.
Code:
stDocName = "RPT_ST003"
DoCmd.OpenReport stDocName 'Prints report without Dialog box...
I need to allow users to access the Print Dialog box when they click Print. Unfortunately, I cannot figure out how to do this. I have tried incorporating the code above with DoCmd.RunCommand acCmdPrint. This does allow users to see the Print Dialog box, but prints the form and not the report.
Does anyone have any ideas? I am stuck and don't know what else to try.
Thank you.
Code:
stDocName = "RPT_ST003"
DoCmd.OpenReport stDocName 'Prints report without Dialog box...
I need to allow users to access the Print Dialog box when they click Print. Unfortunately, I cannot figure out how to do this. I have tried incorporating the code above with DoCmd.RunCommand acCmdPrint. This does allow users to see the Print Dialog box, but prints the form and not the report.
Does anyone have any ideas? I am stuck and don't know what else to try.
Thank you.