Table of contents
TOC
Collapse the table of content
Expand the table of content

TextBox.CanGrow Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets or sets whether the specified control automatically adjusts vertically to print or preview all the data the control contains. Read/write Boolean.

Syntax

expression. CanGrow

expression A variable that represents a TextBox object.

Remarks

The CanGrow property uses the following settings.

SettingVisual BasicDescription
YesTrue (?1)The section or control grows vertically so that all data it contains can be printed or previewed.
NoFalse (0)(Default) The section or control doesn't grow. Data that doesn't fit within the fixed size of the section or control won't be printed or previewed.

This property setting is read-only in a macro or Visual Basic in any view but Design view.

You can use this property to control the appearance of printed forms and reports. When you set the property to Yes, the object automatically adjusts so any amount of data can be printed. When a control grows, the controls below it move down the page.

If you set a control's CanGrow property to Yes, Microsoft Access automatically sets the CanGrow property of the section containing the control to Yes.

Sections grow vertically across their entire width. To grow the data independently, you can place two subform or subreport controls side by side, and set their CanGrow property to Yes.

When you use the CanGrow property, remember that:

  • The property settings don't affect the horizontal spacing between controls; they affect only the vertical space the controls occupy.

  • Overlapping controls can't grow.

Note

See also

Concepts

TextBox Object

© 2018 Microsoft