Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 1.27 KB

Access.Form.Deactivate.md

File metadata and controls

46 lines (25 loc) · 1.27 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Form.Deactivate event (Access)
vbaac10.chm13647
vbaac10.chm13647
Access.Form.Deactivate
8702b30b-d38e-fcb6-141e-0ac4e53c63ad
03/08/2019
medium

Form.Deactivate event (Access)

The Deactivate event occurs when a form loses the focus to a Table, Query, Form, Report, Macro, or Module window, or to the Database window.

Syntax

expression.Deactivate

expression A variable that represents a Form object.

Return value

Nothing

Remarks

When you switch between two open forms, the Deactivate event occurs for the form being switched from, and the Activate event occurs for the form being switched to. If the forms contain no visible, enabled controls, the LostFocus event occurs for the first form before the Deactivate event, and the GotFocus event occurs for the second form after the Activate event.

When you first open a form, the following events occur in this order:

OpenLoadResizeActivateCurrent

When you close a form, the following events occur in this order:

UnloadDeactivateClose

[!includeSupport and feedback]