Minimize a Form to show PrintPreview

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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"
 
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"
 
Back
Top