< Day Day Up > |
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:
Read about report events and their sequence in "The Event Sequence for Reports on page 170. |
< Day Day Up > |