Edit

Share via


Suspend code execution until a pop-up form is closed

To ensure that code in a form suspends operation until a pop-up form is closed, you must open the pop-up form as a modalwindow. The following example illustrates how to use the OpenForm method to do this.

doCmd.OpenForm FormName:=<Name of form to open>, WindowMode:=acDialog

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.