P
Philippe Lang
Hi,
With Office 2003, we can open a MS Access database through a .vbs script,
and call a public sub inside, like this:
Set objAcc = WScript.CreateObject("Access.Application")
objAcc.OpenCurrentDatabase "C:/trusted/reporting.mdb"
objAcc.run "<the_public_sub>", "<the_parameter>"
objAcc.Visible = true
With Office 2007, this does not work anymore. Reason: Error 3027, database
opened read-only. (not the exact error message)
I'm not sure this is a security matter or a bug. Does anyone know how to
revert the pre-office 2007 behaviour regarding external scripts?
Thanks,
Philippe Lang
With Office 2003, we can open a MS Access database through a .vbs script,
and call a public sub inside, like this:
Set objAcc = WScript.CreateObject("Access.Application")
objAcc.OpenCurrentDatabase "C:/trusted/reporting.mdb"
objAcc.run "<the_public_sub>", "<the_parameter>"
objAcc.Visible = true
With Office 2007, this does not work anymore. Reason: Error 3027, database
opened read-only. (not the exact error message)
I'm not sure this is a security matter or a bug. Does anyone know how to
revert the pre-office 2007 behaviour regarding external scripts?
Thanks,
Philippe Lang