Microsoft KB Archive/208569

= ACC2000: Cannot Open Datasheet As a Pop-Up or Modal Form =

Article ID: 208569

Article Last Modified on 6/24/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q208569



Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).



SYMPTOMS
A form with its DefaultView property set to Datasheet and its Modal and PopUp properties set to Yes cannot be opened with all three properties applied. The form opens in Datasheet view, but the Modal and PopUp property settings are ignored.



CAUSE
This behavior occurs because only forms that open in Form view can be modal and pop-up.



RESOLUTION
If you want a form in Datasheet view to be displayed as a modal or pop-up form, consider making the datasheet form a subform in an unbound main form. The main form can be displayed in Form view as a modal or pop-up form. This also gives you the ability to add other features to your form, such as a Close command button, which you could not add otherwise.

Steps to Reproduce the Problem
 Start Microsoft Access and open the sample database Northwind.mdb.  Open the Customers form in Design view and set the following properties:   DefaultView: Datasheet Modal: Yes PopUp: Yes  Close and save the form. In the Database window, click the Customers form, and then click Open. Note that you can still view other database objects and click the menu items.

<div class="references_section">