CDaoWorkspace::GetUserName

Call this member function to obtain the name of the owner of the workspace.

CString GetUserName( );

A CString that represents the owner of the workspace object.

To get or set the permissions for the workspace owner, call DAO directly to check the Permissions property setting; this determines what permissions that user has. To work with permissions, you need a SYSTEM.MDA file.

For information about calling DAO directly, see Technical Note 54. For related information, see the topic "UserName Property" in DAO Help.

Header: afxdao.h

Show: