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

Hello,

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
hr_mullerAsked:
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.

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

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
harfangCommented:
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!
0
shanesuebsahakarnCommented:
If you have multiple popup forms open, you may need to loop through all open forms and un-popup them :)
0
Mighty_SillyCommented:
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.

-Silly-

ps:  well, whadaya expect w/ an alias like that eh?  ;)-
0
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.