Minimize a Form to show PrintPreview

G

Guest

Hello!

On Popup Form, based in conditional Query, I have a command buton to open a
Report in Print Preview form.
However, the print preview Report go to back.

How is possible to minimize the form to show us the new Report, please?
Thanks in advance.
an
 
F

fredg

Hello!

On Popup Form, based in conditional Query, I have a command buton to open a
Report in Print Preview form.
However, the print preview Report go to back.

How is possible to minimize the form to show us the new Report, please?
Thanks in advance.
an

Just make it not visible.

Code the command button:
DoCmd.OpenReport "ReportName", acViewPreview
Me.Visible = False

Code the report's Close event:
forms!FormName!Visible = True
or
if you are all through with the Pop-up form, close it:
DoCmd.Close acForm, "FormName"
 
G

Guest

F,

Thanks for your help.
an

fredg said:
Just make it not visible.

Code the command button:
DoCmd.OpenReport "ReportName", acViewPreview
Me.Visible = False

Code the report's Close event:
forms!FormName!Visible = True
or
if you are all through with the Pop-up form, close it:
DoCmd.Close acForm, "FormName"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top