WindowHeight Property [Access 2003 VBA Language Reference]

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


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


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

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


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

MsgBox Forms.Item("Switchboard").WindowHeight

Applies to | DataAccessPage Object | Form Object | Report Object

See Also | WindowLeft Property | WindowTop Property | WindowWidth Property