Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim WithEvents dsInvoiceLine As Accpacpo1400.ACCPACDSControl
Private Sub dsInvoiceLine_OnRecordChanging(ByVal eReason As AccpacCOMAPI.tagEventReason, _
pStatus As AccpacCOMAPI.tagEventStatus, _
ByVal pField As AccpacDataSrc.IAccpacDSField, _
ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
Select Case eReason
Case RSN_FIELDCHANGE
If AccpacPO1400UICtrl1.UIAppControls("fecPOINVH_BillToLocation").Value = "20LUS" Then
MsgBox ("test")
End If
End Select
End Sub
Dim WithEvents dsInvoiceLine As Accpacpo1400.ACCPACDSControl
Private Sub dsInvoiceLine_OnRecordChanging(ByVal eReason As AccpacCOMAPI.tagEventReason, _
pStatus As AccpacCOMAPI.tagEventStatus, _
ByVal pField As AccpacDataSrc.IAccpacDSField, _
ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
Select Case eReason
Case RSN_FIELDCHANGE
IF pField.Name = "BTCODE" THEN
IF pField.Value = "20LUS" THEN MsgBox "Test"
END IF
[s] If AccpacPO1400UICtrl1.UIAppControls("fecPOINVH_BillToLocation").Value = "20LUS" Then
MsgBox ("test")
End If
[/s]End Select
End Sub
Option Explicit
Dim WithEvents dsInvoiceLine As AccpacPO1400.ACCPACDSControl
Private Sub dsInvoiceLine_OnRecordChanging(ByVal eReason As AccpacCOMAPI.tagEventReason, pStatus As AccpacCOMAPI.tagEventStatus, ByVal pField As AccpacDataSrc.IAccpacDSField, ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
On Error GoTo AccpacErrorHandler
' set data souce control to one of the UI data source controls
Select Case eReason
Case RSN_FIELDCHANGE
If pField.Name = "UNITCOST" Then
If pField.Value > 20 Then MsgBox "Test"
End If
End Select
Exit Sub
AccpacErrorHandler:
ReportErrors
End Sub
Private Sub UserForm_Initialize()
On Error GoTo AccpacErrorHandler
Set dsInvoiceLine = AccpacPO1400UICtrl1.UIDSControls(24)
Exit Sub
AccpacErrorHandler:
ReportErrors
End Sub