You can create a database in code:
VB Code:
Sub CreateDatabase() 'Select Microsoft DAO 3.6 Object Library in Project References Dim ws As Workspace Dim DB As Database Set ws = DBEngine.Workspaces(0) 'set the DB engine workspace Set DB = ws.CreateDatabase(App.Path & "\MyDatabase.mdb", dbLangGeneral) DB.Close ws.Close Set ws = Nothing Set DB = Nothing End Sub




Reply With Quote