I'm currently attempting to modify an existing table's schema. I've created a table, copied data into it, set a bunch of indexes and am in the process of wanting to set a primary key and set one of the fields to use the identity property.
VB code example...
Set pk = New Key
pk.Name = "PrimaryKey"
pk.Type = adKeyPrimary
For Each SourceColumn In SourceIndex.Columns
pk.Columns.Append SourceColumn.Name
Next SourceColumn
TargetTable.Keys.append pk
Can anybody help with this?
Thanks,
Lachlan.
VB code example...
Set pk = New Key
pk.Name = "PrimaryKey"
pk.Type = adKeyPrimary
For Each SourceColumn In SourceIndex.Columns
pk.Columns.Append SourceColumn.Name
Next SourceColumn
TargetTable.Keys.append pk
Can anybody help with this?
Thanks,
Lachlan.