Setting
The LabelAlign property uses the following settings.
Setting | Description |
---|---|
General | (Default) The label text aligns to the left. |
Left | The label text aligns to the left. |
Center | The label text is centered. |
Right | The label text aligns to the right. |
You can set the LabelAlign property by using a control's default control style or the DefaultControl method in Visual Basic.
The TextAlign property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
General | 0 | (Default) The text aligns to the left; numbers and dates align to the right. |
Left | 1 | The text, numbers, and dates align to the left. |
Center | 2 | The text, numbers, and dates are centered. |
Right | 3 | The text, numbers, and dates align to the right. |
You can set the TextAlign property by using the control's property sheet, a macro, or Visual Basic.
You can also set the TextAlign property by clicking Align Left , Center , and Align Right on the Formatting (Form/Report) toolbar.
You can set the default for the TextAlign property by using a control's default control style or the DefaultControl method in Visual Basic.
Remarks
When created, controls have an attached label (as long as their AutoLabel property is set to Yes). Changes to the LabelAlign default control style setting affect only controls created on the current form or report. To change the default control style for all new forms or reports that you create without using a Microsoft Access wizard, see Specify a new template for forms and reports.