Learn Access 2003 VBA with The Smart Method
58
www.LearnAccessVBA.com
Lesson 3-1: Understand
properties
What are properties.
The slide above shows three cars. We can recognise them all as cars but
there are some things that are different about them.
In object-speak we would say that the cars have different properties.
We can think of each as being a car object. If I were to telephone you and
say “I bought a new car" you wouldn’t know what color it was or
whether it was a hard top—but you would still have an abstract idea of
what was sitting in my driveway.
To better visualise the car you would have to ask a few questions like:
Is it a convertible.
What color is it.
To relate this to Access consider a Form object. Form objects have a
Caption property that puts the name of the form into the top blue bar.
If you added enough properties to the Car object you would eventually
be able to precisely describe every car on the planet.
This would solve Socrates’ bee problem too!
Session3