AccpacSession.OpenWin
Establishes an ACCPAC session using Windows authentication.
Sub OpenWin(
Domain As String,
UserIdentifier As String,
Password As String,
DataBase As String,
SessionDate As Date,
Flags As Long,
Reserved As String)
Parameters
Domain
[in] the name of the Windows domain that the user belongs to
UserIdentifier
[in] uses the Windows logon id on the specified domain as the ACCPAC user ID
Password
[in] the password of the user
If the specified company database has security enabled, the password is validated. Otherwise, the password is ignored.
Database
[in] the company Database ID (org ID) to use for this session
SessionDate
[in] the date to use for this session
Flags
[in] reserved - must be 0
Reserved
[in] reserved - must be ""
Remarks
Although a Database ID has to be specified to open a session, no database connection is established until the application calls OpenDBLink to create a database link.
The session must be opened before other methods in the object become available.