Question : How to run code in one database from another database

How do you run a subrotuine in the back end database from code in the front end database?

Answer : How to run code in one database from another database

Sorry ... ignore the first post and try this:

Public Function aaaTest2() As Boolean

Dim appAccess As New Access.Application
appAccess.OpenCurrentDatabase ("SomeFolder\SomeMdbName.mdb")
appAccess.Run "YourFunctionName"
       
End Function

YourFunctionName is the name of the Function in the BE you want to execute.

SomeMdbName is the BE mdb name.

mx
Random Solutions  
 
programming4us programming4us