SpecialEffect Property

Applies To   ActiveX control, Bound Object Frame control, Chart control, Check Box control, Combo Box control, Form section, Image control, Label control, Line control, List Box control, Option Button control, Option Group control, Rectangle control, Report section, Subform/Subreport control, Text Box control, Unbound Object Frame control.

Description

You can use the SpecialEffect property to specify whether special formatting will apply to a section or control.

Setting

The SpecialEffect property uses the following settings.

Setting

Example

Description

Visual Basic

Flat

The object appears flat and has the system's default colors or custom colors that were set in Design view.

0

Raised

The object has a highlight on the top and left and a shadow on the bottom and right.

1

Sunken

The object has a shadow on the top and left and a highlight on the bottom and right.

2

Etched

The object has a sunken line surrounding the control.

3

Shadowed

The object has a shadow below and to the right of the control.

4

Chiseled

The object has a sunken line below the control.

5


You can set this property by using the Special Effect button on the Formatting (Form/Report) toolbar, the object's property sheet, a macro, or Visual Basic.

For controls, you can set the default for this property by using the default control style or the DefaultControl method in Visual Basic.

Remarks

The SpecialEffect property setting affects related property settings for the BorderStyle, BorderColor, and BorderWidth properties. For example, if the SpecialEffect property is set to Raised, the settings for the BorderStyle, BorderColor, and BorderWidth properties are ignored. In addition, changing or setting the BorderStyle, BorderColor, and BorderWidth properties may cause Microsoft Access to change the SpecialEffect property setting to Flat.

Note When you set the SpecialEffect property of a text box to Shadowed, the vertical height of the text display area is reduced. You can adjust the Height property of the text box to increase the size of the text display area.

See Also   BackStyle property, BorderColor property, BorderStyle property, BorderWidth property.