a said:
I'm Sorry
but this error appear to me
Argument not optional (Error 449)
and stop on line
Set dbs = CreateDatabase(strDB)
If you look in the online help for CreateDatabase method (DAO), you'll find
that it requires a second argument called "locale". This argument
established the collating order for the new database. I always use the
dbLangGeneral constant for this, as in:
Set dbs = DBEngine.CreateDatabase(strDB, dbLangGeneral)
I'm don't know what your proper locale is, though, so you may want to use
one of the other available constants. Here's the lis from the help topic:
dbLangGeneral - English, German, French, Portuguese, Italian, and Modern
Spanish
dbLangArabic - Arabic
dbLangChineseSimplified - Simplified Chinese
dbLangChineseTraditional - Traditional Chinese
dbLangCyrillic - Russian
dbLangCzech - Czech
dbLangDutch - Dutch
dbLangGreek - Greek
dbLangHebrew - Hebrew
dbLangHungarian - Hungarian
dbLangIcelandic - Icelandic
dbLangJapanese - Japanese
dbLangKorean - Korean
dbLangNorwDan - Norwegian and Danish
dbLangPolish - Polish
dbLangSlovenian - Slovenian
dbLangSpanish - Traditional Spanish
dbLangSwedFin - Swedish and Finnish
dbLangThai - Thai
dbLangTurkish - Turkish