Home All Groups Group Topic Archive Search About

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

Author
23 Nov 2007 9:20 AM
Doug
Is there a way to get the VB code that opens a popup to wait until the
popup is closed before continuing?

Author
23 Nov 2007 10:42 AM
Keith Wilby
<D***@NoEmail.com> 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
Author
23 Nov 2007 11:11 AM
Stuart McCall
<D***@NoEmail.com> 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).

AddThis Social Bookmark Button