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

Attachment.SizeToFit Method (Access)

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

You can use the SizeToFit method to size a control so it fits the text or image that it contains.

Syntax

expression. SizeToFit

expression A variable that represents an Attachment object.

Remarks

For example, you can apply the SizeToFit method to a command button that is too small to display all the text in its Caption property.

You can apply the SizeToFit method to controls only in form Design view or report Design view.

The SizeToFit method will make a control larger or smaller, depending on the size of the text or image it contains.

You can use the SizeToFit method in conjunction with the CreateControl method to size new controls that you have created in code.

See also

Concepts

Attachment Object

© 2018 Microsoft