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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top