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

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Is there a way to get the VB code that opens a popup to wait until the
popup is closed before continuing?
 
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).
 
Back
Top