USING COLLECTIONS

As mentioned earlier, every form in your application usually has a number of controls. To reference a control, you first have to reference the form. Because a form can consist of many controls, these related controls are grouped together in a collection object.

Collections are a special type of property that consists of related objects. For example, your database consists of a collection of tables, and each table has a collection of fields and indexes. There are now two data access methods for accessing these collections: Data Access Objects (DAO) and ActiveX Data Objects (ADO). These will be discussed in Chapter 5, “Working with Data Access Objects,” and Chapter 6, “Introducing ActiveX Data Objects.”

Collections are object-valued ...

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.