Report opens behind Form

TheSearcher

Registered User.
Local time
Today, 15:01
Joined
Jul 21, 2011
Messages
392
I have a form (Popup = Yes, Modal = No).
I have a command button on the form that opens a report.
When the report opens - it opens behind the form. I can't close the form before opening the report because the report is dependent on a value of a field in the form (Honestly, I wouldn't want to close the form anyway). How do I get the report to open in front of the form?
 
To open the report, try:

DoCmd.OpenReport "NameOfYourReport", acViewReport, "", "", acDialog
 
Thanks Bob! That worked! It opens on the left of the screen though. Is there any way I can have it be in the center of the screen?
 

Users who are viewing this thread

Back
Top Bottom