J
John S. Ford, MD
I have a TextBox on a form (frmPatientEntry), that allows users to enter a
value for field MedicalRecordNumber of a new patient. The form's underlying
table is set to not allow duplicate medical record numbers (only one patient
can have a given medical record number). If a user tries to enter such a
duplicate, Access 2000 fires the following message:
"The changes you requested to the table were not successful because they
would create duplicate values in the index...etc."
This is the error I wish to trigger but I want to write my own error
handler. But no error number is reported so I don't know how to trap this
particular error.
Can anyone help with this?
John
value for field MedicalRecordNumber of a new patient. The form's underlying
table is set to not allow duplicate medical record numbers (only one patient
can have a given medical record number). If a user tries to enter such a
duplicate, Access 2000 fires the following message:
"The changes you requested to the table were not successful because they
would create duplicate values in the index...etc."
This is the error I wish to trigger but I want to write my own error
handler. But no error number is reported so I don't know how to trap this
particular error.
Can anyone help with this?
John