Dec 5, 2002 #1 rpbenito Programmer Jun 13, 2001 63 US How do I open a report in VBA and have it pop up in the front window on top of all the other forms open? Thanks Pat
How do I open a report in VBA and have it pop up in the front window on top of all the other forms open? Thanks Pat
Dec 5, 2002 #2 mp9 Programmer Sep 27, 2002 1,379 GB Code: DoCmd.OpenReport "YourReportNameHere" http://www22.brinkster.com/accessory/ Upvote 0 Downvote
Dec 5, 2002 Thread starter #3 rpbenito Programmer Jun 13, 2001 63 US Thanks, but that code only prints the report...the code I'm using is DoCmd.OpenReport "contact_general_info", acViewPreview it opens the report up to view, but behind the current form. I need it to open up in front of the current form...thanks in adcvance... Pat Upvote 0 Downvote
Thanks, but that code only prints the report...the code I'm using is DoCmd.OpenReport "contact_general_info", acViewPreview it opens the report up to view, but behind the current form. I need it to open up in front of the current form...thanks in adcvance... Pat
Dec 5, 2002 #4 dysphoric Programmer Aug 22, 2001 13 US After the command to open the report, insert: DoCmd.SelectObject acReport, "contact_general_info", False This selects the report as the active object. Upvote 0 Downvote
After the command to open the report, insert: DoCmd.SelectObject acReport, "contact_general_info", False This selects the report as the active object.
Dec 5, 2002 Thread starter #5 rpbenito Programmer Jun 13, 2001 63 US Thanks for the help, but after inserting the line of code nothing changed. Any other suggestions? Upvote 0 Downvote
Dec 5, 2002 #6 dysphoric Programmer Aug 22, 2001 13 US Check the properties for the forms and make sure that none of them are set to "popup". Popup forms will still show on top of active objects. Upvote 0 Downvote
Check the properties for the forms and make sure that none of them are set to "popup". Popup forms will still show on top of active objects.