Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 208476 - Last Review: June 29, 2004 - Revision: 2.0
ACC2000: Maximized Forms First Appear As Restored
This article was previously published under Q208476
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).
Forms always open to a maximized state after any other Microsoft Access window has been maximized (excluding the Microsoft Access Database window). However, when a Microsoft Access window is maximized, forms may briefly be displayed in a restored state when they are first opened, instead of immediately opening as maximized. This behavior varies, based on the setting of the
MinMaxButtons property of the form.
To work around this behavior, set the
MinMaxButtons property to
Max Enabled or to
Both Enabled.
You can also follow these steps if you want to use the
None or
Min Enabled settings instead:
- Start Microsoft Access, and then open any database.
- In the Database window, under Objects, click Macros, and then click New.
- In the Macro dialog box, type Echo as the first action.
- Under Action Arguments, in the Echo On box, select No.
- Type OpenForm as the second action.
- Under Action Arguments in the Form Name box, type the name of the form that will open maximized.
- Type Echo as the third action.
- Under Action Arguments, in the Echo On box, select Yes.
- Save, and then run the macro.
This macro displays only the final results of the actions and not any intermediate steps, such as a form opening in the restored state before it is maximized.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
When you set the
MinMaxButtons property of a form to either
None or
Min Enabled, the form does not open immediately to a maximized state. Instead, the form opens momentarily to a restored state before it is maximized.
Steps to Reproduce Problem
- Open the sample database Northwind.mdb.
- Maximize the Database window.
- Under Objects, click Forms, click Products, and then click Design.
- If the property sheet is not open, click Properties on the View menu.
- Click the Format tab on the property sheet, and then locate the MinMaxButtons property.
- Set the MinMaxButtons property to either None or Min Enabled.
- Click Form View on the View menu, and note that any Microsoft Access window (the Database window, the Products form, and so on) briefly restores before the Products form is maximized.
NOTE: This behavior may not be obvious on faster computers.
For more information about creating a macro, click
Microsoft Access Help on the
Help menu, type
create a macro in the Office Assistant or the Answer Wizard, and then click
Search to view the topic.
APPLIES TO
- Microsoft Access 2000 Standard Edition
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate