ID Primary Key in existing TableDef

Calvin

Registered User.
Local time
Today, 10:03
Joined
Jun 4, 2003
Messages
286
I need to figure out how to ID the Primary Key in an existing TableDef through code.
Anyone have any Idea's?
 
nevermind

CurrentDb.TableDefs(sTableName).Indexes(iCtr).Fields where
CurrentDb.TableDefs(sTableName).Indexes(iCtr).Primary = True
 

Users who are viewing this thread

Back
Top Bottom