PopUp Property

Applies To

Form.

Description

You can use the PopUp property to specify whether a form opens as a pop-up. For example, you set a form’s PopUp and Modal properties to Yes to create a custom dialog box.

Setting

The PopUp property uses the following settings.

Setting

Description

Visual Basic

Yes

The form opens as a pop-up form in Form view. It remains on top of all other Microsoft Access windows.

True (-1)

No

(Default) The form is not a pop-up form.

False (0)


You can set this property using the form’s property sheet, a macro, or Visual Basic.

The PopUp property can be set only in Design view.

Remarks

To specify the type of border you want on a pop-up form, use the BorderStyle property. You typically set the BorderStyle property to Thin for pop-up forms.

Tip You can use the PopUp, Modal and BorderStyle properties to create a custom dialog box. Set Modal to Yes, PopUp to Yes and BorderStyle to Dialog for custom dialog boxes.

Setting the PopUp property to Yes makes the form a pop-up only when you open it in Form view from the Database window or when using a macro or Visual Basic. When the PopUp property is set to Yes, you can’t switch to other views from Form view. You must close the form and reopen it in Design view or Datasheet view.

Note You can use the Dialog setting of the Window Mode argument of the OpenForm action to open a form with its PopUp and Modal properties set to Yes.

See Also

BorderStyle Property, ControlBox Property, MinMaxButtons Property, Modal Property, OpenForm Action.