G
Guest
MS Access 2K, Windows XP
---------------------------
Hi,
I have a table with names of people (Fields: PersonID, FName, LName), with
PersonID as PK, and an index (unique) defined on the combination of (FName
and LName).
I also have a form to enter the names of people. When I try and enter a
first and last name that's already in the table and click on the Save button
(placed using wizard) on the form, I get the message: "changes requested to
the table were not successfull....will create duplicate values in index,
primary key or relationship".
I would like to display my own message instead of the message displayed by
Access. I'm not sure where and how to capture the MS Access message and
display my own. There is no error number displayed with the message.
My guess is BeforeUpdate event of the form, but I'm not sure.
Any help/pointers will be appreciated.
Thanks.
-Amit
---------------------------
Hi,
I have a table with names of people (Fields: PersonID, FName, LName), with
PersonID as PK, and an index (unique) defined on the combination of (FName
and LName).
I also have a form to enter the names of people. When I try and enter a
first and last name that's already in the table and click on the Save button
(placed using wizard) on the form, I get the message: "changes requested to
the table were not successfull....will create duplicate values in index,
primary key or relationship".
I would like to display my own message instead of the message displayed by
Access. I'm not sure where and how to capture the MS Access message and
display my own. There is no error number displayed with the message.
My guess is BeforeUpdate event of the form, but I'm not sure.
Any help/pointers will be appreciated.
Thanks.
-Amit