Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Attachment.SizeToFit Method (Access)

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 Added: Access 2007

expression .SizeToFit

expression A variable that represents an Attachment object.

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.

Show:
© 2015 Microsoft