SubForm.VerticalAnchor (Access)

Gets or sets an AcVerticalAnchor constant that indicates how the specified subform is anchored vertically within its layout. Possible return values are acVerticalAnchorBoth - The control is stretched vertically across its layout, acVerticalAnchorBottom - The control is anchored at the bottom of its layout, acVerticalAnchorTop - The control is anchored at the top of its layout.

The default value is acVerticalAnchorTop.


CreateForm.Controls(1).VerticalAnchor = acVerticalAnchorBoth