modal question

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I have a form in which the user can click "reports"
button and get a popup form that is modal. On this popup
form you can do a report on an employee. Problem is, when
you click on "generate report" the report is behind my
popup form. I've tried slecting yes, modal, on my report
too, but it still does it.

Help!
 
Try this

(Your Code)
docmd.OpenReport "whatever", acViewPreview
forms![YourFormName].visible = False

This will hide the form that has the button to view the
report. Then in the report, on the OnClose event, make the
form visible again like this:

forms![YourFormName].visible = True
 

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

report preview 5
Error message when using Modal Form 5
prevent maximize 1
Property Popup gives an error 2
Popup/Modal Problems 2
Strange search 1
Second form appears behind the first 2
pop behind 1

Back
Top