|
According to the CreateDatabase doc you must supply a second argument (that specifies a locale).
Within VBA this would be something like
Application.DBEngine.CreateDatabase('test2.accdb',dbLangGeneral)
Since MATLAB doesn't recognize the dbLangGeneral constant (nor its cousins) you need to do a little work to find what that (string) constant is defined as.
It seems that the following works:
>> svr = actxserver('Access.Application');
>> createdDB = svr.DBEngine.CreateDatabase('test2.mdb',';LANGID=0x0409;CP=1252;COUNTRY=0');
Phil.
|