Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DoCmd.SetProperty Method (Access)

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

Version Added: Access 2007

expression .SetProperty(ControlName, Property, Value)

expression A variable that represents a DoCmd object.

Parameters

Name

Required/Optional

Data Type

Description

ControlName

Required

Variant

The 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.

Property

Optional

Variant

A AcProperty constant that specifies the property that you want to set.

Value

Optional

Variant

The 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.

Concepts

Other resources

Show:
© 2015 Microsoft