AccpacSession.Open
Opens a session to System Manager with the specified user ID and password, and with the database ID of the company to connect to (later on).
Sub Open(
UserIdentifier As String,
Password As String,
DataBase As String,
SessionDate As Date,
Flags As Long,
Reserved As String)
Parameters
UserIdentifier
[in] a valid ACCPAC user ID
Password
[in] the user's password
If the specified company database has security enabled, the password is validated. Otherwise, the password is ignored.
Database
[in] the database ID (org ID) of the company to open
SessionDate
[in] the date to be used for the 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.