30. Handling Events with VBA and Macros
All Windows applications are event-driven, which means that an event, such as a mouse click on a command button or a change in the position of a record pointer, executes individual standalone or embedded macros, or blocks of application programming code. If you elect to use VBA, the majority of the code you write consists of event-handling subprocedures—also called event procedures or event handlers—that are contained within [{Public|Private}] Sub {Form|Report}_[ObjectName_]EventName... End Sub
structures of class modules. Class module is the VBA term that describes a container for Access-specific VBA code that’s embedded within a Form
or Report
container. As mentioned in Chapter 19, “Automating Access ...
Get Microsoft® Access® 2010 In Depth now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.