Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2004-11-19
Medium Priority
Last Modified: 2006-11-17

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
Question by:hr_muller
  • 2
LVL 41

Accepted Solution

shanesuebsahakarn earned 375 total points
ID: 12624291
You could output it to a snapshot file and display it in a popup form using the Snapshot Viewer ActiveX control.
LVL 58

Expert Comment

ID: 12624406
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!
LVL 41

Expert Comment

ID: 12624412
If you have multiple popup forms open, you may need to loop through all open forms and un-popup them :)
LVL 11

Expert Comment

ID: 12633107
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?  ;)-

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question