As well as Dirk's suggestion, the primary key can be a multi-field index
(typically a natural key), in which case you may want to know if it's the
first field in the index (where you can use the index to search) or not
(where you can't.)
The DescribeIndexField() function on this page:
http://allenbrowne.com/AppRelReportCode.html
returns an upper case "P" if the field is the primary key (or the first
field in the index), or a lower case "p" if it's a subsequent field in in
the primary key. It returns a "U" if the field is uniquely indexed ("u"
for subsequent field in unique index), or "I" ("i") if the field is
indexed at all.