Is the column name part of the primary key ?
The table name
The column name
The DAO database to which the table belongs
Debug.Print TableColumnInPrimaryKey("tblProduct", "ProductID", dbs) --> True