• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

15. Programming DAO: Data Definition Language > 15.1. Creating a Database

Creating a Database

Databases are created using the CreateDatabase method of a Workspace object. The general syntax of this method is:

SetDatabaseVar = [WorkspaceVar.]CreateDatabase _
(DatabaseName, locale [, options])

where:

  • DatabaseName is a string expression representing the full path and name of the database file for the database being created. If you don’t supply a filename extension, then the extension .mdb is automatically appended.

  • locale is a string expression used to specify collating order for creating the database. You must supply this argument, or an error will occur. For the English language, use the built-in constant dbLangGeneral.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint