Temporarily open a form as a dialog box
- Create a macro or event procedure that uses an OpenForm action to open the form.
- Set the Window Mode argument of the OpenForm action to Dialog (acDIALOG for an event procedure).
When you open a form that has its Window Mode argument set to Dialog, Microsoft Access sets the form's PopUp and Modal properties to Yes until the form is closed.
Note Setting the Window Mode argument to Dialog disables user-defined key combinations and some other Microsoft Access function keys, and suspends the macro or event procedure until you close or hide the form. You can hide a form by setting its Visible property to No using the SetValue action.