Open new database

  • Thread starter peljo via AccessMonster.com
  • Start date
P

peljo via AccessMonster.com

I am creating a new database and i am trying to export some tables to this
database.I get the error named Could not find installable ISAM.Could yo help
me with my error ?
below are my functions

Call ANewDB("c:\BE\Init.mdb")
Dim wsp As DAO.Workspace
Set wsp = DBEngine.Workspaces(0)
Dim strPassword As String
strPassword = "secret"
Dim dbs As DAO.Database

Set dbs = wsp.OpenDatabase("C:\BE\Init.mdb", False, False, False)
DoCmd.TransferDatabase acExport, "Microsoft Access", ("C:\be\Init.mdb"),
acTable, "products", "products1"
DoCmd.TransferDatabase acExport, "Microsoft Access", ("C:\be\Init.mdb"),
acTable, "constants", "constants1"
Set dbs = Nothing

End Sub

Function ANewDB(tName As String)
'*******************************************
Dim wsp As Workspace, db As Database
Dim db2 As Database
Set db = CurrentDb
Set wsp = DBEngine.Workspaces(0)
Set db2 = wsp.CreateDatabase(tName, dbLangGeneral)
db2.Close
End Function
 

Ask a Question

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.

Ask a Question

Top