Learn Access 2003 VBA with The Smart Method
64
www.LearnAccessVBA.com
Lesson 3-4: Understand the
Access object model
About object hierarchies
We have already seen how a Car object can contain other objects (such as
a windscreen object).
Objects can also contain object collections of similar objects. In the earlier
example the Car object had a collection of Wheel objects. The wheel
objects did not necessarily have the same properties—for example there
may have been wider tyres fitted on the rear wheels.
Object models express the concept of a hierarchy evident in May Louise
Cooper’s observation above. Each of her bugs is connected to another
bug higher up in the hierarchy.
The Car object model
Before considering the Access object model let’s consider the Car object
model that we’ve been discussing. Here it is:
A Car object contains a Windscreen object and a collection of Wheel
objects.
Greater bugs have little bugs
Upon their backs to bite ‘em
Little bugs have lesser bugs
And so on ad infinitum
May Louise Cooper, “Friendly Beetles", (1916)
Session3