1. Use the IN phrase in the query's FROM clause:
SELECT f1, f2, . . .
INTO table IN "path to BE mdb"
FROM whatever
the run the query in whatever way you prefer.
2. Open the other database and use that db object to
Execute the query:
Dim dbBE As DAO.Database
Dim strSQL As String
Set dbBE = OpenDatabase("path to BE mdb")
strSQL = "SELECT f1, f2, . . . " _
& "INTO table " _
& "FROM whatever"
dbBE.Execute strSQL, dbFailOnError
Set dbBE = Nothing
1. Use the IN phrase in the query's FROM clause:
SELECT f1, f2, . . .
INTO table IN "path to BE mdb"
FROM whatever
the run the query in whatever way you prefer.
2. Open the other database and use that db object to
Execute the query:
Dim dbBE As DAO.Database
Dim strSQL As String
Set dbBE = OpenDatabase("path to BE mdb")
strSQL = "SELECT f1, f2, . . . " _
& "INTO table " _
& "FROM whatever"
dbBE.Execute strSQL, dbFailOnError
Set dbBE = Nothing
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.