Temporarily open a form as a dialog box

Microsoft Office Access 2003

Show All Show All

Temporarily open a form as a dialog box

  1. Create a macro or event procedure that uses an OpenForm action to open the form.
  2. 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.