planetbluau
Programmer
I am trying to incorporate code to programatically add an OE record. I'm developing on VS2010 using vb.net as the rest of the program is in that same version.
I'm having trouble logging on to an Accpac Session.
The code I am using is:
Dim session = New AccpacCOMAPI.AccpacSession
session.Init("", "XY", "XY0001", "56A")
session.Open("ADMIN", "ADMIN", "XYZDAT", Now.Date, 0, 0)
I get the error that the login is incorrect and finally, Error HRESULT E_FAIL has been returned from a call to a COM component.
I understand that the equivalent VBA code is:
Set Session = AccpacCOMAPI.AccpacSession
Session.Init "", "XY", "XY0001", "56A"
Session.Open "ADMIN", "ADMIN", "XYZDAT", Date, 0, 0
Can anyone tell me what I am doing wrong? (At least in this case ;-)
I'm having trouble logging on to an Accpac Session.
The code I am using is:
Dim session = New AccpacCOMAPI.AccpacSession
session.Init("", "XY", "XY0001", "56A")
session.Open("ADMIN", "ADMIN", "XYZDAT", Now.Date, 0, 0)
I get the error that the login is incorrect and finally, Error HRESULT E_FAIL has been returned from a call to a COM component.
I understand that the equivalent VBA code is:
Set Session = AccpacCOMAPI.AccpacSession
Session.Init "", "XY", "XY0001", "56A"
Session.Open "ADMIN", "ADMIN", "XYZDAT", Date, 0, 0
Can anyone tell me what I am doing wrong? (At least in this case ;-)