Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (28 sloc) 1.56 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date localization_priority
ObjectFrame.Scaling property (Access)
vbaac10.chm11611
vbaac10.chm11611
access
Access.ObjectFrame.Scaling
ec0ccdc1-edcd-14d1-05ca-2c3b2e200440
03/23/2019
Normal

ObjectFrame.Scaling property (Access)

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

Syntax

expression.Scaling

expression A variable that represents an ObjectFrame object.

Remarks

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.

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

[!includeSupport and feedback]

You can’t perform that action at this time.