View report in front of form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

This is probably a very easy question to answer, but my VBA skills are rusty
to say the least. I have a report that opens from a command button on a
form. That works fine, except the report always opens behind the form. I
would like it to appear in front of the form on opening. How do I program
this?

Thanks

Tom
 
Tom, open the form in design view, and make sure its Popup and Modal
properties are set to No. The report will then open over the top of the form
(unless the report is already open when you execute your OpenReport.)

It is possible in Access 2002 and 2003 to force a report to open in dialog
mode, but this has other side effects and so is not a good solution. If you
want to try, it's:
DoCmd.OpenReport "Report1", acViewPreview,,,acDialog
 
Allen -

Many thanks! That did it!

Tom

Allen Browne said:
Tom, open the form in design view, and make sure its Popup and Modal
properties are set to No. The report will then open over the top of the form
(unless the report is already open when you execute your OpenReport.)

It is possible in Access 2002 and 2003 to force a report to open in dialog
mode, but this has other side effects and so is not a good solution. If you
want to try, it's:
DoCmd.OpenReport "Report1", acViewPreview,,,acDialog
 

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

Bring Report to Front 2
Report is behind form!!! 2
Report preview behind form 3
Access Form Refresh 1
Filtering subreports on main report 0
access report 0
Report shows up behind the form ? 1
Report loses focus 4

Back
Top