Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Smart Pop Up Form

Status
Not open for further replies.

zp162002

Programmer
Feb 3, 2003
39
US
I would like to create a form (similar to a pop up form) to allow a user to run some reports. Currently when the user clicks on a command button to run a particular report in preview mode, the pop up form keeps the focus and floats on top of the report. How can I code this form to allow the report to have the focus instead of the form? I would also like to have the reports form to regain the focus when the user closes the report.
 
Can you not just use the set focus method ie.


report1.setfocus


Put this in the button you press to open the report. It must go after you've opened the report.

To return the focus to the popup do the same thing in an onclose event on the report.

Hope this works for you
 
A popup form is meant to always be on top. To get the report to show instead of the form you can do 1 or 2 things.

Change the properties of the Pop-up form to be Popup NO and Modal YES. That way if other forms are open you cannot get to them until you close this form but the report can be opened on top.

Or...

Close the form when you open the report and reopen the form when you close the report.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top