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

D

Doug

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

Stuart McCall

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).
 
Top