CreateNewDatabase Parameter (Connect-Access Cmdlet)
Specifies what format shoud be used by a new database file created when the file specified by connection property DataSource does not exist.
Syntax
Connect-Access -CreateNewDatabase string
Possible Values
No, 2003, 2007, 2010, 2016, 2019Data Type
cstr
Default Value
"No"
Remarks
By default this is set to No, and an exception will be thrown instead of creating new database file.
When a new database file is created it's file name extension is forcibly specified to correspond to default file name extension used by respective database's format pointed by this property.