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

Objects

Before discussing the various components of the DAO model, we must discuss the concept of an object . In the parlance of object-orientation, an object is something that is identified by its properties and its methods(or actions).

As we will see (and as the name implies) DAO is full of objects. For example, each saved table in an Access database is an object, called a TableDefobject. (Actually, it is the definition of the table, rather than its data, that is an object of type TableDef.) Some of the properties of TableDef objects are Name, RecordCount, DateCreated, and LastUpdated.

An object’s methods can be thought of as procedures or functions that act on the object. For instance, one of the methods of a TableDef object is CreateField, which, as the name implies, is used to create a new field for the TableDef object. Another method is OpenRecordset , which creates a Recordset object that can be used to manipulate the data in the table. (A more object-oriented view of methods is that they are messages sent to the object, saying, in effect, perform the following action.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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