Hello, (Access 2007)
I have one form that has the follow data types
Patient ID (primary key)
Patient Research number. This is a text field with a unique alphanumeric code.
I do not want this code to be duplicated when i enter a new subject. I have set the Table view Indexed condition to Yes (No Duplicates), thinking that a popup box would stop me from entering a duplicate value. Well, it worked but not how I envisaged . When I tested it, it did give me an error message when I put in duplicate values. Great! However, for some reason it is giving me the same error message when I enter new (unique) data into this field.
Is this happening because the Primary Key is indexed the same way? If so, what can I do?
If I am not asking too much, could someone also tell we how (step by step) I can create a custom error message box when this event happens?
Thanks
I have one form that has the follow data types
Patient ID (primary key)
Patient Research number. This is a text field with a unique alphanumeric code.
I do not want this code to be duplicated when i enter a new subject. I have set the Table view Indexed condition to Yes (No Duplicates), thinking that a popup box would stop me from entering a duplicate value. Well, it worked but not how I envisaged . When I tested it, it did give me an error message when I put in duplicate values. Great! However, for some reason it is giving me the same error message when I enter new (unique) data into this field.
Is this happening because the Primary Key is indexed the same way? If so, what can I do?
If I am not asking too much, could someone also tell we how (step by step) I can create a custom error message box when this event happens?
Thanks