Hem / Tips & tricks
Dim ws As WorkspaceDim db As DatabaseSet ws = DBEngine.Workspaces(0)'substitute Password with the desired passwordSet db = ws.CreateDatabase("test.mdb", dbLangGeneral & ";pwd=Password")