I want to nightly run a VBS Script in Scheduled tasks to open an
Access 2003 database and execute a macro.
The problem is that the database opens to a switchboard screen. I
need to open this database with a VBS script that mimicks opening the
database with {shift} open. My code:
dim accessApp
set accessApp = CreateObject("A ccess.Applicati on")
accessApp.visib le = True
accessApp.OpenC urrentDataBase( "C:\ACF\Cop ied from Server\ACF.mdb" )
accessApp.Run "Macro1"
accessApp.Quit
When this script executes, the switchboard is open, and the Macro1
can't be found (executed).
Thanks
Access 2003 database and execute a macro.
The problem is that the database opens to a switchboard screen. I
need to open this database with a VBS script that mimicks opening the
database with {shift} open. My code:
dim accessApp
set accessApp = CreateObject("A ccess.Applicati on")
accessApp.visib le = True
accessApp.OpenC urrentDataBase( "C:\ACF\Cop ied from Server\ACF.mdb" )
accessApp.Run "Macro1"
accessApp.Quit
When this script executes, the switchboard is open, and the Macro1
can't be found (executed).
Thanks
Comment