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

Chapter 10. The Real Scoop on Objects, P... > Understanding Access's Object Model

Understanding Access's Object Model

Objects are the components of a database. They include the tables, queries, forms, reports, macros, and modules that appear in the database window. They also include the controls (text boxes, list boxes, and so on) on a form or report. The key to successful programming lies in your ability to manipulate the database objects by using VBA code at runtime. It's also very useful to be able to add, modify, and remove application objects at runtime.

The Application Object

An overview of the superficial Access Object Model is shown in Figure 10.1. At the top of the model, you can see the Application object, which refers to the active Access application. It contains all of Access's other objects and collections, including the Forms collection, the Reports collection, the Modules collection, the Screen object, and the DoCmd object. The Application object can be used to modify the properties of, or execute commands on, the Access application itself, such as specifying whether Access's built-in toolbars are available while the application is running.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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