You're right about mixing logical and physical but to my knowledge, ADOX is
part of the physical world: there is no such thing a ADOX in the theoritical
definition of the SQL language and of relational databases.
Also, in the case of the statement:
..AutoIncrement = tblSourceTable_col.Properties("AutoIncrement").Value
the AutoIncrement property doesn't mean necessarily that the column is a
primary key or part of the primary key.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail:
http://cerbermail.com/?QugbLEWINF
"Jamie Collins" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Sylvain Lafontaine (fill the blanks, no spam please) wrote:
>> Primary keys are indexes and are not propertie of a column/field.
>> (Otherwise, it would be hard to have a multi-field primary key.)
>
> Mixing logical and physical here: a PRIMARY KEY or CONSTRAINT UNIQUE
> (logical) is implemented in Jet using an index (physical). The fact an
> index is used, rather than some other implementation, is irrelevant in
> this case.
>
> A column could legitimately have a property 'is a PK column' to
> indicate it is a member of the set 'PK columns'.
>
> Jamie.
>
> --
>