I have a form that has several subforms on it. They are all linked to the main table by use of a field called Patient ID.
On this form, if I use the buttons for first record, previous record, next record, last record; there is no problem and everything works correctly.
But if I try to type in an ID number in the box and then hit tab, it gives me the following dialog box.
"The changes that you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain the duplicate data, remove the index, or redefine the index to permit duplicate entries and try again."
I think that it's trying to change the Patient ID of the current patient to whatever number i type in, and it can't because the ID is the primary key. But i don't know how to fix this.
Or if there's a different way to ensure that the user cannot enter duplicate values in the ID field, that works too.
Appreciate the help, Joe.
On this form, if I use the buttons for first record, previous record, next record, last record; there is no problem and everything works correctly.
But if I try to type in an ID number in the box and then hit tab, it gives me the following dialog box.
"The changes that you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain the duplicate data, remove the index, or redefine the index to permit duplicate entries and try again."
I think that it's trying to change the Patient ID of the current patient to whatever number i type in, and it can't because the ID is the primary key. But i don't know how to fix this.
Or if there's a different way to ensure that the user cannot enter duplicate values in the ID field, that works too.
Appreciate the help, Joe.
Comment