I need some assistance bringing a report to the front of a form using code. Can it be done?
Essentially what I have is a startup form. When opening the database, this form opens automatically. I then have code asking the user if they wish to print "Report A".
If they answer "yes" the report opens. If they answer "No" nothing happens.
The problem is, when they answer "yes" and the report opens, it's opened in the background and they have to click the window below to bring it up. I'm assuming because the code is finishing the "open" portion of the startup form that it's loading "on top" of the form.
Is there any code that can be run that will bring the report to the front after the startup form is loaded? Or, am I calling the report at the wrong time "OnLoad" or "OnOpen"?
Can anyone help?
Essentially what I have is a startup form. When opening the database, this form opens automatically. I then have code asking the user if they wish to print "Report A".
If they answer "yes" the report opens. If they answer "No" nothing happens.
The problem is, when they answer "yes" and the report opens, it's opened in the background and they have to click the window below to bring it up. I'm assuming because the code is finishing the "open" portion of the startup form that it's loading "on top" of the form.
Is there any code that can be run that will bring the report to the front after the startup form is loaded? Or, am I calling the report at the wrong time "OnLoad" or "OnOpen"?
Can anyone help?