Applies ToAccess for Microsoft 365 Access 2024 Access 2021 Access 2019 Access 2016

Applies to

Form Object

Report Object

Returns or sets a Boolean indicating whether a Form window or Report window opens automatically sized to display complete records. Read/write.

expression.AutoResize

expression Required. An expression that returns one of the objects in the Applies To list.

Setting

The AutoResize property uses the following settings.

Setting

Visual Basic

Description

Yes

True

(Default) The Form window or Report window is automatically sized to display a complete record.

No

False

When opened, the Form window or Report window has the last saved size. To save a window's size, open the form, size the window, save the form by clicking Save on the File menu, and close the form or report. When you next open the form or report, it will be the saved window size.

You can set this property by using the form's property sheet, a macro, or Visual Basic for Applications (VBA) code.

Remarks

The Form window resizes only if opened in Form view. If you open the form first in Design view or Datasheet view and then change to Form view, the Form window won't resize.

If you make any changes in Design view to a form whose AutoResize property is set to No and whose AutoCenter property is set to Yes, switch to Form view before saving the form. If you don't, Access clips the form on the right and bottom edges the next time you open the form.

If the AutoCenter property is set to No, a Form window opens with its upper-left corner in the same location as when it was closed.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.