M
Mike C.
Hello.
I am currently working on a database that contains a
subform that conatains a combo box (in datasheet view)
which allows the user to choose a group associated with a
person's contact info. I have it set up so that they can
add multiple groups. When a group is chosen to which the
person already belongs I get the error message:
"The changes 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 duplicate data, remove
teh index, or redefine the index to permit duplicate
entries and try again." (whew!)
This is exactly the type of error I want, however, not so
wordy. How can I generate my own custom error message
that simply tells the user "Contact already belongs to
this group. Please choose another."
Thanks in advance,
m.
I am currently working on a database that contains a
subform that conatains a combo box (in datasheet view)
which allows the user to choose a group associated with a
person's contact info. I have it set up so that they can
add multiple groups. When a group is chosen to which the
person already belongs I get the error message:
"The changes 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 duplicate data, remove
teh index, or redefine the index to permit duplicate
entries and try again." (whew!)
This is exactly the type of error I want, however, not so
wordy. How can I generate my own custom error message
that simply tells the user "Contact already belongs to
this group. Please choose another."
Thanks in advance,
m.