Understanding Object Models

An object model is a road map, or a sort of the view-from-30,000-feet, of all the objects and properties that VBA can manipulate. Because there are so many thousands of objects, you need a sort of road map to find them, just like how you need a map to navigate unfamiliar territory.

When you view an object model (or portion of an object model), all you see is color-coded boxes arranged in a vertical hierarchy. For example, Figure 5-1 shows a small portion of the Access object model. Notice the legend in this figure, which points out that some boxes represent an object only, yet others represent both an object and a collection.

Figure 5-1:

Small portion of the Access object model.

Figure 5-1:

Small portion of the Access object model.

0 0

Post a comment