PROGRAMMING WITH OBJECTS

Earlier, the section “Defining the Life and Location of Variables” introduced you to the concept of variable and procedure scoping by using the Public and Private keywords. The following sections discuss how you also can create and reference your own custom properties and methods on an object. Custom properties are essentially variables for which you can write custom routines when they're assigned or retrieved. For example, the Visible property on the form functions like a variable, but when you assign a value to it, it either hides or shows the object. With VBA, you can now create your own variables that provide special behaviors.

Note

Method is essentially another term for a subroutine or function. Methods act on the ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.