CreateTableDef Method

Creates a new TableDef object.

Applies to objects: Database

Syntax

[[Set] RetVal = ] object.CreateTableDef([Name])

The CreateTableDef method syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A TableDef type variable.
Name Optional. A String type variable. The name of the table being created.

Remarks

Once a new TableDef object has been created, you need to set the fields by using the CreateField method. The created fields are added to the Fields collection by using the Append method.

The table itself will be created in the database on calling the Append method of the TableDefs collection.

Example

.......

 

See Also

Database Object, Fields Object, TableDef Object, TableDefs Object, Name Property, Append Method, CreateField Method.