Hello -
I have copied into my database some VBA code which automatically designates an existing field as a Primary Key, which works. However, if this code is referenced after the Primary Key is created, then I get the Primary Key Already Exists error.
I want to add lines to the code that first checks whether or not my table already contains a primary key. Can anybody offer tips on how to do this?
Any assistance is most appreciated.
Thanks!
I have copied into my database some VBA code which automatically designates an existing field as a Primary Key, which works. However, if this code is referenced after the Primary Key is created, then I get the Primary Key Already Exists error.
I want to add lines to the code that first checks whether or not my table already contains a primary key. Can anybody offer tips on how to do this?
Any assistance is most appreciated.
Thanks!