Scaling Property [Access 2003 VBA Language Reference]

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


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


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

  • 0 (Clip) If the object exceeds the control's boundaries, the object is clipped at the boundaries of the control.
  • 1 (Stretch) If the object does not exceed the control's boundaries, the object is stretched to the edges of the control's boundary.
  • 2 (Zoom) The object is zoomed in or out to fit the control's boundaries. This is different from the Stretch setting, in that the object is not necessarily distorted to touch all boundaries of the control. In other words, the object may touch the horizontal edges of the control, but not necessarily the vertical edges of the control, and vice versa.


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

Applies to | BoundObjectFrame Object | ObjectFrame Object

See Also | Scale Method | ScaleHeight Property | ScaleLeft Property | ScaleMode Property | ScaleTop Property | ScaleWidth Property