irenavassilia
Programmer
- Jun 19, 2007
- 101
Hi Everyone,
I need to pre-populate the first manufacturing item number from Accpac ERP v5.4 P/O.
This is my code i'm just curious as to why this function never gets triggered? Could someone please help me understand this.
Here is my code:
Private WithEvents dsOEORDD As AccpacOE1100.ACCPACDSControl
Private Sub AccpacOE1100UICtrl1_OnUIAppClosed()
Set dsOEORDD = Nothing
End
End Sub
Private Sub AccpacOE1100UICtrl1_OnUIAppOpened()
Dim strCompName As String
Set dsOEORDD = AccpacOE1100UICtrl1.UIDSControls(13)
strCompName = AccpacOE1100UICtrl1.UISession.CompanyID
Me.Caption = strCompName & " - " & pstrProjectTitle
End Sub
Private Sub dsOEORDD_OnRecordChanging(ByVal eReason As tagEventReason, pStatus As tagEventStatus, ByVal pField As AccpacDataSrc.IAccpacDSField, ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
If (eReason = RSN_ADDNEW) Then
'Read the first ICIOTH record
OEORDD.MANITEMNO = ICIOTH.MANITEMNO
End If
Exit Sub
End Sub
I need to pre-populate the first manufacturing item number from Accpac ERP v5.4 P/O.
This is my code i'm just curious as to why this function never gets triggered? Could someone please help me understand this.
Here is my code:
Private WithEvents dsOEORDD As AccpacOE1100.ACCPACDSControl
Private Sub AccpacOE1100UICtrl1_OnUIAppClosed()
Set dsOEORDD = Nothing
End
End Sub
Private Sub AccpacOE1100UICtrl1_OnUIAppOpened()
Dim strCompName As String
Set dsOEORDD = AccpacOE1100UICtrl1.UIDSControls(13)
strCompName = AccpacOE1100UICtrl1.UISession.CompanyID
Me.Caption = strCompName & " - " & pstrProjectTitle
End Sub
Private Sub dsOEORDD_OnRecordChanging(ByVal eReason As tagEventReason, pStatus As tagEventStatus, ByVal pField As AccpacDataSrc.IAccpacDSField, ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
If (eReason = RSN_ADDNEW) Then
'Read the first ICIOTH record
OEORDD.MANITEMNO = ICIOTH.MANITEMNO
End If
Exit Sub
End Sub