G
Guest
Using Access 97. Users are entering patients by their (OHC#). Required
field and no duplicates are allowed.
Problem: They don't know if OHC# is a duplicate until they have completed
entering the whole record and then move to next record. They get error
message #3314. Basically, telling them that there is a duplicate. Now they
have to find the original using the a different method.
I would like to have a code that runs after update on the OHC# to make this
a little easier. The code would force a save, capture the error (if any). I
would like to capture the error message (#3314) and substitute my own.
Something like "You have entered a duplicate OHC#. Do you wish to find this
patient now?" If they click OK then I would like the code to take the OHC#
they entered and find this record and return it to them.
I know what I want it to do but I am not sure how to capture the error
message and whether putting it on the after update event on the OHC# field is
the best place.
Appreciate all your input. It has been very helpful in the past.
field and no duplicates are allowed.
Problem: They don't know if OHC# is a duplicate until they have completed
entering the whole record and then move to next record. They get error
message #3314. Basically, telling them that there is a duplicate. Now they
have to find the original using the a different method.
I would like to have a code that runs after update on the OHC# to make this
a little easier. The code would force a save, capture the error (if any). I
would like to capture the error message (#3314) and substitute my own.
Something like "You have entered a duplicate OHC#. Do you wish to find this
patient now?" If they click OK then I would like the code to take the OHC#
they entered and find this record and return it to them.
I know what I want it to do but I am not sure how to capture the error
message and whether putting it on the after update event on the OHC# field is
the best place.
Appreciate all your input. It has been very helpful in the past.