WindowTop Property [Access 2003 VBA Language Reference]

Returns an Integer indicating the screen position in twips of the top edge of a form or report relative to the top of the Microsoft Access window. Read-only.

expression.WindowTop

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

Remarks

Use the Move method to change the position of a form or report.

Example

The following example returns the screen position of the top and left edges of the first form in the current project.

With Forms(0)

    MsgBox "The form is " & .WindowLeft _
        & " twips from the left edge of the Access window and " _
        & .WindowTop _
        & " twips from the top edge of the Access window."

End With

Applies to | Form Object | Report Object

See Also | Move Method | Moveable Property | WindowHeight Property | WindowLeft Property | WindowWidth Property