I have seen a lot of posts and blogs for running cross dictionary lookups, but I am having a hard time returning the value. I understand that the "return to" can not be used when opening the lookup form. I am trying to do all of this through VBA code.
If I try continuum, this is my code that I use.
Set GPApp = CreateObject("Dynamics.Application")
Dim GPCallBack as new GPCallBackClass
GPApp.RegisterFocusTrigger("'Select Button' of window Salesperson_Lookup of form Salesperson_Lookup", 1, 2, GPCallBack, "SalesPersonLookupReturn")
GPCallbackClass (Class Module)
Public Sub SalesPersonLookupReturn() MsgBox "Worked" End Sub
The message box is not displayed when I click the select button.
I have also tried to create a trigger using pass through sanscript, but for the 4th parameter, the script, I do not already have a script defined in dexterity, I would need to use another pass-through sanscript to create the script. Is there a way to do that?
I have tried to also use the execute command, but I am unable to determine when the select button is clicked on my lookup.
Any help is appreciated.
*This post is locked for comments