PopUpDS Event

SOLVED

Hi, 


im trying to create a macro to capture Popup data sources, and capture the events of the ds. I created this code below, then I tried to debug. But it does not capture the events of the dsPORCPLDet. Is it possible to have this function in Sage . Thanks

Private Sub AccpacPO1310UICtrl1_OnPopupOpened(ByVal strPopupName As String, PopupDSs As AccpacPO1310.ACCPACDSControls, PopupCtls As AccpacPO1310.ACCPACControls, strPopupCaption As String, icoPopup As stdole.Picture)


If strPopupName = "DetailEntryZoom" Then
Set dsPORCPL = Nothing
Set dsPORCPLDet = PopupDSs("dsPORCPL")
End If
End Sub