jalpha21
2009-04-13 23:29:02 UTC
Code snippet:
Set CompilerApp = CreateObject("Dynamics.Application")
Commands = ""
Commands = Commands & "open form IV_Location_Lookup {return to CUSTOMER
FIELD}; {Can't return to Modifier field}"
Commands = Commands & "run script 'Redisplay Button' of window
IV_Location_Lookup of form IV_Location_Lookup;"
' Execute SanScript call OpenWindowRet of form IV_Location_Lookup, """ &
Trim(FMSSiteID) & """, """ & Trim(FMSSiteID) & """
CompilerError = CompilerApp.ExecuteSanscript(Commands, CompilerMessage)
I created a lookup button using the Modifier and attached some VBA code to
open the Site ID lookup. That works great, but how do I return the Site ID
selection from the Microsoft Dynamics GP lookup window to my Modifier/VBA
added Site ID field to the Customer Maintenance window?
Thanks.
Jeff
Set CompilerApp = CreateObject("Dynamics.Application")
Commands = ""
Commands = Commands & "open form IV_Location_Lookup {return to CUSTOMER
FIELD}; {Can't return to Modifier field}"
Commands = Commands & "run script 'Redisplay Button' of window
IV_Location_Lookup of form IV_Location_Lookup;"
' Execute SanScript call OpenWindowRet of form IV_Location_Lookup, """ &
Trim(FMSSiteID) & """, """ & Trim(FMSSiteID) & """
CompilerError = CompilerApp.ExecuteSanscript(Commands, CompilerMessage)
I created a lookup button using the Modifier and attached some VBA code to
open the Site ID lookup. That works great, but how do I return the Site ID
selection from the Microsoft Dynamics GP lookup window to my Modifier/VBA
added Site ID field to the Customer Maintenance window?
Thanks.
Jeff