DoCmd.SetProperty (Access)
The SetProperty method carries out the SetProperty action in Visual Basic.
SetProperty (ControlName, Property, Value)
DoCmd.SetProperty
Arguments
Optional arguments
The following arguments are optional
ControlName (String) - 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 (AcProperty) - An AcProperty constant that specifies the property that you want to set.
Here you can find possible values for
Value (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.