Scaling Property

       

Controls how the contents of an object frame control are displayed. Read/write Byte.

expression.Scaling

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

The Scaling property corresponds to the Size Mode box in the object frame's Properties window. This property accepts the following values.

Example

The following example sets the size mode of the OLE control "Customer Picture" on the "Order Entry" form to zoomed.

Forms("Order Entry").Controls("Customer Picture").Scaling = 2