Create a pop-up form or report
Before you do the following procedure, create the form or report you want.
- Open the form or report in Design view.
- Double-click the form selector or report selector to open the property sheet.
- In the Pop Up property box, click Yes.
-
Do one of the following:
For a modeless pop-up form or report
- If you want to be able to size the form or report, in the BorderStyle property box, click Thin.
- 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 next to the OnClick property box of the Review Products button.
For a modal pop-up form or report
- In the Modal property box, click Yes.
- In the BorderStyle property box, click Dialog.
- Create a macro or an event procedure to open the pop-up form or report.
- 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.