Can anyone help with the code of calling the ACCPAC login Session (login screen) using API in VB6. I am able to log in when I hard code the login credentials using the following code:
----------------------------------------------------------
Set ACCPAC_Session = New AccpacSession
ACCPAC_Session.Init "", "XZ", "XZ1000", "54A"
ACCPAC_Session.Open "ADMIN", "ADMIN", "SMINC", Date, 0, ""
Set mDBLinkCmpRW = CCPAC_Session.OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
Set mDBLinkSysRO = ACCPAC_Session.OpenDBLink(DBLINK_SYSTEM, DBLINK_FLG_READONLY)
------------------------------------------------------------
However, what I want is to prompt the user to enter their Username, Password and select a company before logging into ACCPAC.
----------------------------------------------------------
Set ACCPAC_Session = New AccpacSession
ACCPAC_Session.Init "", "XZ", "XZ1000", "54A"
ACCPAC_Session.Open "ADMIN", "ADMIN", "SMINC", Date, 0, ""
Set mDBLinkCmpRW = CCPAC_Session.OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
Set mDBLinkSysRO = ACCPAC_Session.OpenDBLink(DBLINK_SYSTEM, DBLINK_FLG_READONLY)
------------------------------------------------------------
However, what I want is to prompt the user to enter their Username, Password and select a company before logging into ACCPAC.