Share via


Report.GotFocus Event (Access)

The GotFocus event occurs when the report receives the focus.

Version Information

Version Added: Access 2007

Syntax

expression .GotFocus

expression A variable that represents a Report object.

Remarks

To run a macro or event procedure when these events occur, set the OnGotFocus property to the name of the macro or to [Event Procedure].

These events occur when the focus moves in response to a user action, such as pressing the TAB key or clicking the object, or when you use the SetFocus method in Visual Basic or the SelectObject, GoToRecord, GoToControl, or GoToPage action in a macro.

See Also

Concepts

Report Object

Report Object Members