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

Class Modules

Access 97 offers two types of modules: standard modules and class modules. Access 95 introduced class modules for forms and reports, but Access 97 is the first version of Access to offer the ability to create class modules from the Database window. To create a class module, simply choose Insert | Class Module.

A class module is similar to a code module. The subroutines and functions in the class module become the methods of the class. The Property Let and Property Get routines become the properties of the class, and the class module's name becomes the name of the custom object. A class module is a great way to encapsulate related functions into a portable, self-contained object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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