Hi I am new to ACCPAC and have a bit of VB knowledge.
I'm using ACCPAC v5.3A
As a start all I want to do is:
1) connect to the Demo company
2) Create a AR UI
3) populate a Combo Box with the AR ID's
4) Have a text box where the Group ID of the AR, selected in combo box, is displayed.
So far this is what I have...
Public Sub Form_Activate()
' COMAPI Session and DBLink object
Dim Session As New AccpacCOMAPI.AccpacSession
Dim DBLink As AccpacCOMAPI.AccpacDBLink
' Open the ACCPAC Session
Session.Open "ADMIN", "ADMIN", "SAMINC", Date, 0, ""
Session.Init "", "AR", "AR0024", "52A"
' Set the DBLink object for the fields
Set DBLink = Session.OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
'Declare and Open the View
Dim ARACCOUNT As AccpacView
Any help would be greatly appreciated!
I'm using ACCPAC v5.3A
As a start all I want to do is:
1) connect to the Demo company
2) Create a AR UI
3) populate a Combo Box with the AR ID's
4) Have a text box where the Group ID of the AR, selected in combo box, is displayed.
So far this is what I have...
Public Sub Form_Activate()
' COMAPI Session and DBLink object
Dim Session As New AccpacCOMAPI.AccpacSession
Dim DBLink As AccpacCOMAPI.AccpacDBLink
' Open the ACCPAC Session
Session.Open "ADMIN", "ADMIN", "SAMINC", Date, 0, ""
Session.Init "", "AR", "AR0024", "52A"
' Set the DBLink object for the fields
Set DBLink = Session.OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
'Declare and Open the View
Dim ARACCOUNT As AccpacView
Any help would be greatly appreciated!