Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

You can use the RestoreWindow macro action in Access desktop databases to restore a maximized or minimized window to its previous size.

Note: Beginning in Access 2010, the Restore macro action was renamed to RestoreWindow.

Note: This macro action can't be applied to code windows in the Visual Basic Editor. For information about how to affect code windows, see the WindowState property topic.

Setting

The RestoreWindow macro action doesn't have any arguments.

Remarks

This macro action works on the selected object. If an object has been minimized, you can first select it by using the SelectObject macro action and then restore it to its previous size by using the RestoreWindow macro action.

You can use the MoveAndSizeWindow macro action to move or size a window that you have restored.

The RestoreWindow macro action has the same effect as clicking the Restore button in the window's upper-right corner or clicking the Restore command on the window's Control menu.

To run the RestoreWindow action in a Visual Basic for Applications (VBA) module, use the Restore method of the DoCmd object.

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.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×