Thursday, August 2, 2018

MinimizeWindow Macro Action

MinimizeWindow Macro Action

If Access is configured to use overlapping windows instead of tabbed documents, you can use the MinimizeWindow macro action to reduce the active window to a small title bar at the bottom of the Access window.

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.

Note: Beginning in Access 2010, the Minimize macro action was renamed to MinimizeWindow.

Note: The MinimizeWindow macro action isn't available in Access web apps.

Setting

The MinimizeWindow macro action doesn't have any arguments.

Remarks

You can use this macro action to remove a window from the screen while leaving the object open. You can also use this action to open an object without displaying its window. To display the object, use the SelectObject macro action with either the MaximizeWindow or RestoreWindow macro action. The RestoreWindow macro action restores a minimized window to its previous size.

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

Tips

  • You may first need to use the SelectObject macro action if the window you want to minimize isn't the active window.

  • To hide the Navigation Pane, use the SelectObject macro action with the In Navigation Pane argument set to Yes and then use the MinimizeWindow macro action. The object you select in the SelectObject macro action can be any object in the database.

  • You can hide the active window by clicking Manage This Window on the View menu, and then clicking Hide. Instead of being reduced to an icon, the window becomes invisible. Use the Unhide command on the same menu to make the window reappear. You can use the RunMenuCommand macro action to carry out either of these commands from a macro.

  • You can also use the SetValue macro action to set a form's Visible property to hide or show the form's window.

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

No comments:

Post a Comment