GetObjectOwner method (ADOX)

Applies to: Access 2013, Office 2013

Returns the owner of an object in a Catalog.

Syntax

Owner = Catalog.GetObjectOwner(ObjectName, ObjectType [,ObjectTypeId])

Return value

Returns a String value that specifies the Name of the User or Group that owns the object.

Parameters

Parameter Description
ObjectName A String value that specifies the name of the object for which to return the owner.
ObjectType A Long value which can be one of the ObjectTypeEnum constants, that specifies the type of the object for which to get the owner.
ObjectTypeId Optional. A Variant value that specifies the GUID for a provider object type not defined by the OLE DB specification. This parameter is required if ObjectType is set to adPermObjProviderSpecific; otherwise, it is not used.

Remarks

An error will occur if the provider does not support returning object owners.