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 (Design view: A view that shows the design of these database objects: tables, queries, forms, reports, and macros. In Design view, you can create new database objects and modify the design of existing objects.).
  2. Double-click the form selector (form selector: The box where the rulers meet, in the upper-left corner of a form in Design view. Use the box to perform form-level operations, such as selecting the form.) or report selector (report selector: The box where the rulers meet in the upper-left corner of a report in Design view. Use the box to perform report-level operations, such as selecting the report.) to open the property sheet (property sheet: A pane that is used to view or modify the properties of various objects such as tables, queries, fields, forms, reports, data access pages, and controls.).
  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.
  1. 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.

 
 
Applies to:
Access 2003