Hello, I’m having difficulty with form/report process.
Right now I have on the main form a button the user clicks and it opens up a (pop-up) form. On this form they can select from a drop-down list in a combo box it will pull up a report, then closes the pop-up form. The print preview of the report shows up, but once the pop-up form closes the focus goes back to the main form instead of the report. Is there a way to have the focus on the report?
Here’s the VB code – for the combo box, after update/event procedure:
DoCmd.OpenReport "r_ReviewDetail", acViewPreview, , , acWindowNormal
DoCmd.Close acForm, "f_ChooseType", Save
My goal is to have a drop-down menu list of items in order to filter for a report. How this is accomplished, with a pop-up sub-form, or some other way doesn't matter as long as it works. It seemed like this was the only way…. (initially had a prompt with dialog box where the user had to enter information, but that wasn't working well, people type the wrong info. I need them to choose from a list.)
Thanks for the help!!