Table of contents
TOC
Collapse the table of content
Expand the table of content

DoCmd.SetProperty Method (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

The SetProperty method carries out the SetProperty action in Visual Basic.

Syntax

expression. SetProperty( ** ControlName, ** Property, ** Value** )

expression A variable that represents a DoCmd object.

Parameters

NameRequired/OptionalData TypeDescription
ControlNameRequiredVariantThe name of the field or control for which you want to set the property value. Leave this argument blank to set the property for the current form or report.
PropertyOptionalVariantA AcProperty constant that specifies the property that you want to set.
ValueOptionalVariantThe value to which the property is to be set. For properties whose values are either Yes or No, use ?1 for Yes and 0 for No.

See also

Concepts

DoCmd Object

© 2018 Microsoft