Attachment.SizeToFit method (Access)
Use the SizeToFit method to size a control so that 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 makes a control larger or smaller, depending on the size of the text or image that it contains.
Use the SizeToFit method in conjunction with the CreateControl method to size new controls that you have created in code.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for