Couldn't the table meta data be used to find out which field(s) is / are part of the primary key? Regards, Peter