W
web1723
I'm trying to get a module from a different access DB to
return the results of a function to the current DB. Here
is what I've coded so far:
In my current module on db2.mdb...
Dim appAccess As New Access.Application
appAccess.OpenCurrentDatabase ("commondb.mdb")
appAccess.Run "db1.function1", "A"
commondb.mdb is a second DB with a function that returns a
SQL statement that will be used in the module in db2. The
module appears to be working, but I can't get the results.
If I code SQL=appAccess.Run "db1.function1", "A" I get a
compile error.
Any suggestions?
return the results of a function to the current DB. Here
is what I've coded so far:
In my current module on db2.mdb...
Dim appAccess As New Access.Application
appAccess.OpenCurrentDatabase ("commondb.mdb")
appAccess.Run "db1.function1", "A"
commondb.mdb is a second DB with a function that returns a
SQL statement that will be used in the module in db2. The
module appears to be working, but I can't get the results.
If I code SQL=appAccess.Run "db1.function1", "A" I get a
compile error.
Any suggestions?