This is my AutoRun.vbs
Code:
dim accessApp
set accessApp = createObject("Access.Application")
accessApp.OpenCurrentDataBase("\\File02\usfs\Crystal and Excel Reports - Phoenix\CrystalReports\Memberships\MembershipsReporting.accdb")
accessApp.Run "ExportRptsMacro"
accessApp.Quit
set accessApp = nothing
I did have this bat file AutoRun.bat but it didn't work and why the above is used. And it works EXCEPT on the Server with the intermittent issues.
Code:
C:\Windows\System32\cscript.exe "\\File02\usfs\Crystal and Excel Reports - Phoenix\CrystalReports\Memberships\Scripts\AutoRun.vbs"
Also this AutoProcess.bat using the old /x macroname
Code:
C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE
\\File02\usfs\Crystal and Excel Reports - Phoenix\CrystalReports\Memberships\Memberships.accdb /x ExportRpts