i know how to create table and rows and columns of .mdb file in visual basic but how to set a primary key on any field.How is it possible.