I am trying to set up a process where I will be able to open a DB and then run an exsisting module from with the DB I opened.
Does anyone know how to do this?
my example code:
In the database I open I have a procedure called "test".
This code attempts to run this procedure, but obvisouly does not work.
Dim Db As Database
Dim MyWrkSpace As Workspace
Dim MyFile As String
Dim FilePath As String
FilePath = "S:\Risc\MISPROD\DB\_IP\"
MyFile = "test.mdb"
Set MyWrkSpace = DBEngine.Workspaces(0)
Set Db = MyWrkSpace.OpenDatabase(FilePath & MyFile)
Db.Execute ("test"
<---How do I call a precedure???????
Does anyone know how to do this?
my example code:
In the database I open I have a procedure called "test".
This code attempts to run this procedure, but obvisouly does not work.
Dim Db As Database
Dim MyWrkSpace As Workspace
Dim MyFile As String
Dim FilePath As String
FilePath = "S:\Risc\MISPROD\DB\_IP\"
MyFile = "test.mdb"
Set MyWrkSpace = DBEngine.Workspaces(0)
Set Db = MyWrkSpace.OpenDatabase(FilePath & MyFile)
Db.Execute ("test"