PrintPreview of a report on top of a Modal/Popup form


A printPreview which is called from a form which is modal and popup doesn't appear. It seems if it is behind the form. Who know a solution to show the Preview of the Report

Regards, Hugo
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You could output it to a snapshot file and display it in a popup form using the Snapshot Viewer ActiveX control.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can also use:
    Me.Visible = False
before opening the report. And add this to the report(s):

Private Sub Report_Deactivate()
On Error Resume Next
    Forms("frmModalPopup").Visible = True
End Sub

If you have many reports, it's probably not a good idea to create a module for each. In that case, create a function:

Function BackToMenu()
On Error Resume Next
    Forms("frmModalPopup").Visible = True
End Function

And call that as the report's Deactivate event: =BackToMenu()

Hope this helps!
If you have multiple popup forms open, you may need to loop through all open forms and un-popup them :)
I would just make the form Modal (remove the pop-up). ...  .  You wouldn't have the problem if it's (just) Modal.

It's just me, plz enlighten where a Modal AND Popup would be beneficial.

Modal alone works for me.


Just playing devil's advocate.


ps:  well, whadaya expect w/ an alias like that eh?  ;)-
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.