Report.GotFocus event (Access)
The GotFocus event occurs when the report receives the focus.
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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.