Hello all,
I have a need to clear the InfoPath 2010 cache on form opening. Through a search I found the following code:
Dim wshShell,
sParam
sParam = "C:\Program Files\Microsoft Office\OFFICEXX\INFOPATH.EXE /cache clearall"
Set wshShell = Createobject("WScript.Shell")
wshShell.Exec sParam
Set wshShell = Nothing
I added this code to the OnLoad Event and it returns with an error:
Name 'CreateObject' is not declared.
The form will not save and will not build.
Is there anyone that has tried to systematically cleared cache on an InfoPath form load?