& Visual Basic Help
File Edit Bookmark Opticns Help
Conlenls |
Search |
|
SęeAJso Example Applies T o
Creates anewDatabase object savesthe database on diskand returns an opened Database —I
object. —I
Syntax
Set database = workspace .CreateDatabase {databasename. focafe [. opt/ons ]) The CreateDatabase method syntax has these parts:
Part_Description_
database
workspace
databasename
/ocafe
opt/ons
A variable of an object data type that represents the Database object you're creating.
A variable of an object datatype that represents the existing Workspace object that will contain the database. Ifyouomitthe workspace part the default Workspace is used.
A stnng.exp.ressign.that is the name of the database file thatyou're creating. It can be the fuli path and filename, such as "C: \MYDB. MDB". If you don't supply afilename extension, .MDB is appended. If your network supports it you can ais o specify a network path, such as "\\MYSERVER\MYSHARE\MYDIR\MYDB" . Only .MDB database files can be created using this method.
A string expression used to specify collating order for creating the database. You must supply this argument or an error will occur. See the table that lists /oca/e constants later in this topie.
An integerthat indicates one or morę options, as specified in Settings. You can combine options by summing the corresponding constants.
d