Class Container (DAO VBA)

A Container object groups similar types of Document objects together. To use a Container class variable it first needs to be instantiated, for example


Dim cnt as Container
Set cnt = Workspaces(1).Databases(1).Containers(Item:=1)

AllPermissions


Dim cnt As DAO.Container: Set cnt = 
cnt.AllPermissions

Documents

Returns a Documents collection that contains all of the documents stored in the specified object.


Dim cnt As DAO.Container: Set cnt = 
cnt.Documents

Inherit


Dim cnt As DAO.Container: Set cnt = 
cnt.Inherit = True

Name

Returns the name of the specified object.


Dim cnt As DAO.Container: Set cnt = 
cnt.Name

Owner


Dim cnt As DAO.Container: Set cnt = 
cnt.Owner =

Permissions


Dim cnt As DAO.Container: Set cnt = 
cnt.Permissions =

Properties

Returns the Properties collection of the specified object.


Dim cnt As DAO.Container: Set cnt = 
cnt.Properties

UserName


Dim cnt As DAO.Container: Set cnt = 
cnt.UserName =