Color Property

Description

Returns/sets the current selected color.

Usage

[form.][control.]Color[ = OLE_COLOR ]

Data Type

OLE_COLOR

Default

&HFFFFFF(White)

Remarks

This property is the same with Value property, because in MS Access, Value property is hosted by ActiveX control “Object” member, there is a error occurred when invoking Value property straightly, this Color property can be use straightly in anywhere.

About this property usage, refer to Value, DefaultItemColor and WhoIsSelected properties

Notes: Color cells tooltip texts will not synchronize automatically after its value is changed. All color cells tooltip texts need be modify manually if you hope it has meaning, refer to SetColorCellToolTip method.

Sample

ColorPicker1.Color = &HC0FFFF