Deactivate

This event occurs when a form is no longer the active window.

Syntax

Private Sub form_Deactivate( )

Parameters

form
Object expression that evaluates to a Form object.

Remarks

A form becomes active when you use the Show or SetFocus methods in code or when a user initiates an action, such as choosing an object.

The Deactivate event occurs only when you move the focus within an application. Moving the focus in another application does not initiate the event.

The Deactivate event occurs before the LostFocus event.