Microsoft KB Archive/304092

= ACC2002: The Database Window Is Displayed When a Database Is Opened from the Most Recently Used File List Even After You Clear the &quot;Display Database Window&quot; Check Box =

Article ID: 304092

Article Last Modified on 9/26/2003

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



This article was previously published under Q304092



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
After you click to clear the Display Database Window check box in the Startup dialog box on the Tools menu, the Database window is still displayed after you close the database startup form and then open the database from the most recently used file list on the File menu.



CAUSE
This behavior occurs because the Database window is only hidden when you close the startup form. The Database window is not closed.



RESOLUTION
To prevent the Database window from being displayed when you close the main startup form, add the following code to the Close event of the startup form: Application.CloseCurrentDatabase



STATUS
This behavior is by design.



Steps to Reproduce the Behavior

 * 1) Start Microsoft Access 2002.
 * 2) On the Help menu, point to Sample Databases, and then click Northwind Sample Database.
 * 3) On the Tools menu, click Startup.
 * 4) In the Startup dialog box, click the arrow in the Display Form/Page box, and then click Main Switchboard.
 * 5) Click to clear the Display Database Window check box, and then click OK.
 * 6) Close the database.
 * 7) On the Help menu, point to Sample Databases, and then click Northwind Sample Database.
 * 8) Close the Main Switchboard form. At this point, the Microsoft Access application window is blank, which may lead you to think that the database is closed.
 * 9) On the File menu, click the Northwind sample database in the most recently used file list. (The Northwind sample database should appear as the first file in the list.)

Note that the Database window is displayed.

