Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.95 KB

Access.ComboBox.SpecialEffect.md

File metadata and controls

54 lines (33 loc) · 1.95 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ComboBox.SpecialEffect property (Access)
vbaac10.chm11407
vbaac10.chm11407
Access.ComboBox.SpecialEffect
d9b82840-8914-7818-990d-9b595da4ba9f
02/26/2019
medium

ComboBox.SpecialEffect property (Access)

Use the SpecialEffect property to specify whether special formatting will apply to the specified object. Read/write Byte.

Syntax

expression.SpecialEffect

expression A variable that represents a ComboBox object.

Remarks

The SpecialEffect property uses the following settings.

Setting Visual Basic Description
Flat 0 The object appears flat and has the system's default colors or custom colors that were set in Design view.
Raised 1 The object has a highlight on the top and left and a shadow on the bottom and right.
Sunken 2 The object has a shadow on the top and left and a highlight on the bottom and right.
Etched 3 The object has a sunken line surrounding the control.
Shadowed 4 The object has a shadow below and to the right of the control.
Chiseled 5 The object has a sunken line below the control.

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.

Example

The following example sets the appearance of the text box OrganizationName1 on the Mailing List form to Raised.

Forms("Mailing List").Controls("OrganizationName1").SpecialEffect = 1

[!includeSupport and feedback]