j***@gmail.com
2018-04-26 06:28:32 UTC
Hi,
I can record a macro from client access in vbscript language.
I want to mimic same steps using my vbscript by creating .vbs file. I am not able to establish connection through vbs file but same can be achieved by vba macro by using following commands.
OPTION EXPLICIT
dim autECLCon, autECLs , autECLO
Set autECLCon = CreateObject("PCOMM.autECLConnList")
Set autECLs = CreateObject("PCOMM.autECLPS")
Set autECLO = CreateObject("PCOMM.autECLOIA")
''' Initialize the session
autECLCon.Refresh
autECLs.SetConnectionByHandle (autECLCon(1).Handle)
autECLO.SetConnectionByHandle (autECLCon(1).Handle)
autECLs.startcommunication
autECLO.WaitForAppAvailable
Please help.
Jasdeep
I can record a macro from client access in vbscript language.
I want to mimic same steps using my vbscript by creating .vbs file. I am not able to establish connection through vbs file but same can be achieved by vba macro by using following commands.
OPTION EXPLICIT
dim autECLCon, autECLs , autECLO
Set autECLCon = CreateObject("PCOMM.autECLConnList")
Set autECLs = CreateObject("PCOMM.autECLPS")
Set autECLO = CreateObject("PCOMM.autECLOIA")
''' Initialize the session
autECLCon.Refresh
autECLs.SetConnectionByHandle (autECLCon(1).Handle)
autECLO.SetConnectionByHandle (autECLCon(1).Handle)
autECLs.startcommunication
autECLO.WaitForAppAvailable
Please help.
Jasdeep