Taking Advantage of Default Collections

Most DAO objects have several collections, one of which is the default collection for that object. You can use abbreviated syntax when referring to default collections. For example:

DBEngine.Workspaces(0).Databases(0)

can be shortened to

DBEngine(0)(0)

This shorter syntax is also slightly faster. Note that when you use default collections, your code may be difficult to read, so you may want to add explanatory comments.

See Also For more information about default collections, see “Using Default Collections to Write Shorter Code” earlier in this chapter.