I have a vb.Net script that is run from within a workflow using Microsoft.Office.Interop.Access assemblies.
It correctly creates the object using CreateObject("Access.Application"), it opens the database exclusively using the OpenCurrentDataBase("accdb_file_location" ,true), however the application closes before any command is executed in the database.
I even tried using AutoExcec macro to run command automatically as the database opens with no luck.
NOTE: When I run it from within the Script Editor it works beautifully, but when I run the workflow the application starts, database opens, but closes right away.
FYI: I am using Laserfiche 10 and I am running my tests right from the Laserfiche Server.
Insights on this matters will be greatly appreciated.
Thanks,