Report is behind form!!!

S

SF

Hi,

I have a form use to print selected record. The form is opened as a dialog
so that this form stay on top of the other form. When I preview a report,
the report goes behind the form and user cannot see anything except the
margin of report. Is there a way to bring the report in front of the form
(that opened as dialog)?

SF
 
F

fredg

Hi,

I have a form use to print selected record. The form is opened as a dialog
so that this form stay on top of the other form. When I preview a report,
the report goes behind the form and user cannot see anything except the
margin of report. Is there a way to bring the report in front of the form
(that opened as dialog)?

SF

If the form is opened in dialog it will remain on open and on top
until you either close the form or, usually, just make the form not
visible.
Add a command button to the form.
Code it's Click event:
Me.Visible = False

Then code the report's Close event
Forms!FormName.Visible = True

or if you are through with the form:
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

Top