ACC: Label Placed in, Not to Left of, Command Button on Form

Last reviewed: May 28, 1997
Article ID: Q96573
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

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

In Microsoft Access version 1.x, when you add a command button to a form, Microsoft Access places a label in the top-left corner of the command button control. In Microsoft Access 2.0, 7.0, and 97, a label is not placed in the top left corner of the command button control unless you have set the AutoLabel property to Yes.

RESOLUTION

In Microsoft Access 1.x, you can change the default AutoLabel property of the command button to No before adding a new command button to the form; then, new command buttons will not have a label in them when you place them on a form. In Microsoft Access 2.0 or later, the AutoLabel property is set to No by default. To have Microsoft Access place a label in the command button, set the AutoLabel property to yes.

NOTE: To change the Default property of the command button, in a form's Design view, open the command button's property sheet by clicking properties on the View menu. Click the command button in the toolbox. The property sheet title should read "Default Command Button." Now you can make the needed changes.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0) and open the Suppliers form in Design view.

  2. Click the command button tool in the toolbox.

  3. Add the control anywhere to the form. In Microsoft Access 1.x, the command button will be displayed with a label in the top-left corner. In Microsoft Access 2.0 or later, the Command Button Wizard will be invoked, and after you answer several questions, the command button will be added to the form without a label unless you set the AutoLabel property to Yes.

REFERENCES

For more information about the AutoLabel property, search the Help Index for "AutoLabel," or ask the Microsoft Access 97 Office Assistant.


Additional query words: push button pushbutton
Keywords : FmsHowto kbusage
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.