![]() ![]() When you enter or change data in a control on a form and then move the focus to another control, the BeforeUpdate and AfterUpdate events occur: When you close a form, the Exit and LostFocus events occur before the events associated with closing the form (such as Unload, Deactivate, and Close), as follows:Įxit (control) LostFocus (control) Unload (form) Deactivate (form) Close (form) Changing and updating data in a control When the focus leaves a control on a form (for example, when you close a form that contains one or more active controls, or when you move to another control on the same form), the Exit and LostFocus events occur in this order: Open (form) Activate (form) Current (form) Enter (control) GotFocus (control) When you open a form, the Enter and GotFocus events occur after the events associated with opening the form (such as Open, Activate, and Current), as follows: ![]() When you move the focus to a control on a form (for example, by opening a form that contains one or more active controls, or by moving the focus to another control on the same form), the Enter and GotFocus events occur in this order: The examples in this article use the Visual Basic for Applications (VBA) format for event names. ![]() For example, the event named On Got Focus in the form's property sheet and in the Macro Builder is named GotFocus in the Visual Basic Editor. Note: Microsoft Office Access displays event names slightly differently in the Visual Basic Editor than it does in the property sheet and the Macro Builder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |