• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 28. Responding to Events with VB... > Adding Event-Handling Code with the ...

Adding Event-Handling Code with the Command Button Wizard

Event-handling subprocedures represent the most common approach to handling events that are generated by control objects and Recordset objects bound to forms and reports. Command buttons are the most common control object to initiate user-generated events. The easiest way to create a simple VBA event-handling subprocedure is to add a command button to a form with the Command Button Wizard. The Command Button Wizard writes most or all of the code for the most commonly used Click event handlers.

To add a command button and its associated event-handling code for opening the Categories form, follow these steps:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint