ScaleMode Property [Access 2003 VBA Language Reference]
You can use the ScaleMode property in Visual Basic to specify the unit of measurement for coordinates on a page when the Circle , Line , Pset , or Print method is used while a report is previewed or printed, or its output is saved to a file. Read/write Integer.
expression Required. An expression that returns one of the objects in the Applies To list.
The ScaleMode property uses the following settings.
|0||Custom values used by one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties|
|4||Characters (horizontal = 120 twips per unit; vertical = 240 twips per unit)|
The property setting has an Integer value.
By using the related ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties, you can create a custom coordinate system with both positive and negative coordinates. All four properties interact with the ScaleMode property in the following ways:
- Setting any other Scale property to any value automatically sets the ScaleMode property to 0.
- Setting the ScaleMode property to a number greater than 0 changes the ScaleHeight and ScaleWidth property settings to the new unit of measurement and sets the ScaleLeft and ScaleTop properties to 0. Also, the CurrentX and CurrentY property settings change to reflect the new coordinates of the current point.