• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. CODING IN ACCESS 2000 WITH VBA > PROGRAMMING WITH OBJECTS

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 object they're contained in. For example, the Repaint method on the form tells the form to repaint itself.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint