modal question

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!
 
B

berk

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

Top