In Access 2, you had to live with a predefined set of properties and methods. Today, VBA lets you define your own additional form properties. With VBA, you can create properties and methods that can be referenced just as though they were built in. You're now ready for the next step of adding public properties and methods to the form.
The forms created in this section are on the CD-ROM in the back of this book in the Chap02.mdb file, located in the \Examples\Chap02 folder.
You can expose a form in two ways. The first way, which is very simple, is just to expose a form variable as public. This is done by placing the keyword Public in front of the variable's declaration. Follow these steps: