Create a pop-up form or report

Microsoft Office Access 2003

Show All Show All

Create a pop-up form or report

Before you do the following procedure, create the form or report you want.

  1. Open the form or report in Design view.
  2. Double-click the form selector or report selector to open the property sheet.
  3. In the Pop Up property box, click Yes.
  4. Do one of the following:

    ShowFor a modeless pop-up form or report

    1. If you want to be able to size the form or report, in the BorderStyle property box, click Thin.
    2. Create a macro or an event procedure to open the pop-up form or report.

      Note  The Suppliers form in Northwind sample application has an example of an event procedure that displays a modeless pop-up form. Open the Northwind database in the Samples subfolder of your Office folder, and then open the Suppliers form in Design view. Click the Build button Button image next to the OnClick property box of the Review Products button.

    ShowFor a modal pop-up form or report

    1. In the Modal property box, click Yes.
    2. In the BorderStyle property box, click Dialog.
    3. Create a macro or an event procedure to open the pop-up form or report.
  5. Attach the macro or an event procedure to a form or report by specifying the macro name or event procedure as the setting for the appropriate event property. For example, type the name of the macro or event procedure in the OnClick property box of a command button.

    To position a pop-up form or report on the screen, open it in Design view, maximize the Microsoft Access window, position the window where you want it, and then save the form or report. The pop-up window will appear in this location when the form or report is opened (assuming the AutoCenter property is set to No and you haven't specified its position in the event procedure that opens the pop-up object).

Note  If you want to use a form as a normal form as well as a dialog box, you can use the Dialog setting of the OpenForm action to open the form temporarily as a dialog box instead of using this procedure.