Hi
I have created an object that points to another Access database. I am then trying to assign the results of a function in the newly opened database to a local recordset. The following code does this...
Dim appAccess As Access.Application
Dim rst as Recordset
Set appAccess = GetObject(strDatabasePath)
Set rst = appAccess.Run("fnReturnData"
However, when I call the GetObject, Access opens the required database and runs the Autoexec macro.
Is there a way to bypass the autoexec macro of this database when I link to it, so that I can simply call the function that is contained within it..??
Thanks
I have created an object that points to another Access database. I am then trying to assign the results of a function in the newly opened database to a local recordset. The following code does this...
Dim appAccess As Access.Application
Dim rst as Recordset
Set appAccess = GetObject(strDatabasePath)
Set rst = appAccess.Run("fnReturnData"
However, when I call the GetObject, Access opens the required database and runs the Autoexec macro.
Is there a way to bypass the autoexec macro of this database when I link to it, so that I can simply call the function that is contained within it..??
Thanks