I think the following should help. Why these topics 1-4 are not readily available in Help, I just don't know. Anyway this shows you how to:
1. Create an AutoNumber Field
2. Create a Hyperlink Field
3. Add a Primary Key and Index
4. Format a Field
Dim dbs As Database
Dim strTableName a String
Dim fld As Field, fld1 As Field, fld2 As Field, fld3 As Field
Dim prop1 As Property, prop2 As Property, prop3 As Property
Dim idx As Index, idxFld As Field
Dim tdf As TableDef, tdf2 As TableDef
On Error GoTo ErrCreateTable
strTableName = "MyFormattedTable"
Set dbs = CurrentDb()
'********************Create the Table and Add Fields****************************
Set tdf = dbs.CreateTableDef(strTableName) 'Create a New Table
Set fld = tdf.CreateField("AnAutoNumberField", dbLong) 'Create AutoNumber Field
fld.Attributes = dbAutoIncrField 'then Set it's Attributes to AutoNumber
tdf.Fields.Append fld
With tdf
.Fields.Append .CreateField("AStringField", dbText, 75)
.Fields.Append .CreateField("ANumberField", dbDouble)
.Fields.Append .CreateField("ADateTimeField", dbDate)
End With
Set fld = tdf.CreateField("AHyperlinkField", dbMemo) 'Create Hyperlink Field
fld.Attributes = dbHyperlinkField 'then Set it's Attributes to Hyperlink
tdf.Fields.Append fld
dbs.TableDefs.Append tdf
'********************Set Primary Key and Indexes****************************
Set tdf2 = dbs.TableDefs(strTableName)
Set idx = tdf2.CreateIndex("PrimaryKey1"

'Index ANumberField, Primary Yes, No Duplicates
With idx
.Required = True
.Primary = True
.Unique = True
End With
Set idxFld = idx.CreateField("ANumberField"

idx.Fields.Append idxFld
tdf2.Indexes.Append idx
Set idx = tdf2.CreateIndex("PrimaryKey2"

'Index AStringField, Duplicates OK
Set idxFld = idx.CreateField("AStringField"

idx.Fields.Append idxFld
tdf2.Indexes.Append idx
'*******************************Format Fields*******************************
Set fld1 = tdf2.Fields("ANumberField"

'Do some Formatting on ANumberField
Set prop1 = fld1.CreateProperty("Format", dbText, "Fixed"

fld1.Properties.Append prop1
Set prop1 = fld1.CreateProperty("DecimalPlaces", dbByte, 2)
With fld1
.Properties.Append prop1
.DefaultValue = 0
.ValidationRule = "Is Not Null"
.ValidationText = "You must enter a Value"
.Required = True
End With
Set fld2 = tdf2.Fields("ADateTimeField"

'Do some Formatting on ADateTimeField
Set prop2 = fld2.CreateProperty("Format", dbText, "Medium Time"

fld2.Properties.Append prop2
Set fld3 = tdf2.Fields("AStringField"

'Do some Formatting on AStringField
Set prop3 = fld3.CreateProperty("InputMask", dbText, "(###) ###-####"

fld3.Properties.Append prop3
Set prop3 = fld3.CreateProperty("Caption", dbText, "MyTelephoneNo"

fld3.Properties.Append prop3
fld3.AllowZeroLength = True
dbs.Close
ErrCreateTableExit:
Exit Sub
ErrCreateTable:
If Err <> 91 Then
MsgBox Err.Description & " ; Error No: " & Err.Number
Resume ErrCreateTableExit
End If
Paste the above into the On Click event of a button on a Form to test it.