UserID

ACCPAC Common Controls

AccpacSession.UserID

Returns the ID (username) of the currently logged in user. It is the user ID used to open the session.

Property UserID As String
(read-only)

Remarks

The user ID is passed to the session's Open method. If the session is opened with a valid object handle through the Init method, the session inherits the user ID of the session which created the object handle.

It returns an empty string ("") if the session is not open.