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

Chapter 14. Working with Reports > Introducing the Report Module and Events

Introducing the Report Module and Events

For the most part, VBA code is stored in one of two module types: standard or object. The object module is a special module attached to a report or a form. The module is saved with the object and supports events and properties that are unique to the object.

Most of the code you enter and store in a report module (or a form module for that matter) comes in the form of event procedures—code that’s executed when some action occurs. For instance, code added to the report’s Open event is executed when you open the report. Let’s look at a quick example that maximizes the report:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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