How do I get a form to wait for a popup to close?

How do I get a form to wait for a popup to close?

am 23.11.2007 10:20:19 von Doug

Is there a way to get the VB code that opens a popup to wait until the
popup is closed before continuing?

Re: How do I get a form to wait for a popup to close?

am 23.11.2007 11:42:30 von Jebusville

wrote in message
news:0k6dk3tp4vkk88qtvvcreiuvro2n7249f0@4ax.com...
> Is there a way to get the VB code that opens a popup to wait until the
> popup is closed before continuing?
>
>
>

Set the form's Modal property to True.

Keith.
www.keithwilby.com

Re: How do I get a form to wait for a popup to close?

am 23.11.2007 12:11:03 von Stuart McCall

wrote in message
news:0k6dk3tp4vkk88qtvvcreiuvro2n7249f0@4ax.com...
> Is there a way to get the VB code that opens a popup to wait until the
> popup is closed before continuing?

Specify acDialog as the WindowMode parameter:

DoCmd.OpenForm "MyPopupForm", WindowMode:=acDialog

This will pause your code until the form is closed or hidden (Visible =
False).