Compartir a través de


Attachment.SizeToFit Method (Access)

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

Version Information

Version Added: Access 2007

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 Members

Attachment Object