By using VB6 to work with Access database, I am trying to delete a field with primary key in a table then I will set another primary key in another field.
db.Execute "ALTER TABLE tblSealTests DROP CONSTRAINT ID"
error: CHECK constraint 'ID' does not exist
Note that the table, field and primary key was created in Access instead of VB code.
db.Execute "ALTER TABLE tblSealTests DROP CONSTRAINT ID"
error: CHECK constraint 'ID' does not exist
Note that the table, field and primary key was created in Access instead of VB code.