WindowWidth Property

Microsoft Access Visual Basic

WindowWidth Property

       

Returns or sets the width of a form, report, or data access page in twips, depending on the object. Read/write Integer for the Form and Report objects; read-only Long for the DataAccessPage object.

expression.WindowWidth

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

Remarks

The WindowWidth property is measured from the upper left corner of the form, report, or data access page to its upper-right corner.

This property setting is available only by using a macro or Visual Basic.

Example

The following example displays a message box indicating the width of the window (in twips) for the "Switchboard" form.

MsgBox Forms.Item("Switchboard").WindowWidth