Question : Hide a pop up form to preview report?

I am using Access 2000.  I would like to be able to preview a report that is printed from a pop up form- but the report comes up behind the form due to the pop-up setting.  I know that of Office 2007, you can set the pop up property on reports, but we are still using office 2000.  What is a suitable workaround?  Can I hide the form in the on open event of the form and then unhide it in the report close?  How to do that?  Is there a better way?  Thanks...

Answer : Hide a pop up form to preview report?

Sorry ... had a double paste

You mean like this:

Private Sub Report_Open(Cancel As Integer(

me.YourFormName.Visible = false

End If


Private Sub Report_Close()
me.YourFormName.Visible = True
End Sub

mx
Random Solutions  
 
programming4us programming4us