May someone please Help.
I have covered 95% of my conversion project from pure VB6 to VB6 plus XAPI for ACCPAC 5.4A and 5.5A. I am able to use access the GL0001 view through the following code:
------------------------------------------------------------
Public ACCPAC_Session As AccpacSession
Dim Fnd As AccpacFinder.ViewFinder
Set Fnd = New AccpacFinder.ViewFinder
Fnd.Session = ACCPAC_Session
Fnd.ViewID = "GL0001"
Fnd.DisplayFieldIDs = Array(21, 1, 3)
Fnd.ReturnFieldIDs = Array(21, 1, 3)
Fnd.Filter = ""
Fnd.InitKeyType = KEY_VALUE_AS_INIT_KEY
Fnd.InitKeyValue = txtGL_ACCOUNT.Text
Fnd.AutoTabAway = True
If Fnd.Finder = True Then
txtGL_ACCOUNT.Text = " " & Fnd.ReturnFieldValues(1)
txtGL_Account_Name.Text = " " & Fnd.ReturnFieldValues(2)
End If
------------------------------------------------------------
My problem is in making use of the CS0002 view in VB6-XAPI environment. I would like to drop down the Calender control from a VB form and trap the YEAR and PERIOD
I have covered 95% of my conversion project from pure VB6 to VB6 plus XAPI for ACCPAC 5.4A and 5.5A. I am able to use access the GL0001 view through the following code:
------------------------------------------------------------
Public ACCPAC_Session As AccpacSession
Dim Fnd As AccpacFinder.ViewFinder
Set Fnd = New AccpacFinder.ViewFinder
Fnd.Session = ACCPAC_Session
Fnd.ViewID = "GL0001"
Fnd.DisplayFieldIDs = Array(21, 1, 3)
Fnd.ReturnFieldIDs = Array(21, 1, 3)
Fnd.Filter = ""
Fnd.InitKeyType = KEY_VALUE_AS_INIT_KEY
Fnd.InitKeyValue = txtGL_ACCOUNT.Text
Fnd.AutoTabAway = True
If Fnd.Finder = True Then
txtGL_ACCOUNT.Text = " " & Fnd.ReturnFieldValues(1)
txtGL_Account_Name.Text = " " & Fnd.ReturnFieldValues(2)
End If
------------------------------------------------------------
My problem is in making use of the CS0002 view in VB6-XAPI environment. I would like to drop down the Calender control from a VB form and trap the YEAR and PERIOD