Microsoft KB Archive/96573

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

Article ID: 96573

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q96573



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



SYMPTOMS
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 &quot;Default Command Button.&quot; Now you can make the needed changes.



STATUS
This behavior is by design.



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.

