ACC: Label Placed in, Not to Left of, Command Button on Form
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
- Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x
and 2.0) and open the Suppliers form in Design view.
- Click the command button tool in the toolbox.
- 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 : kbusage FmsHowto
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb