B
Bruce
I'm trying to prevent people from entering a duplicate Client Code.
Currently I am using the BeforeUpdate event, searching a
RecordsetClone for an existing code, and cancelling the update if a
match is found (with a message box alert).
This all works fine, but when a duplicate is found I want the text in
the Client Code textbox to be highlighted so that the user can simply
type the new code instead of having to backspace over the already
entered code.
I've tried a variety of things (setfocus, AfterUpdate, "", etc).
Any suggestions?
Bruce
Currently I am using the BeforeUpdate event, searching a
RecordsetClone for an existing code, and cancelling the update if a
match is found (with a message box alert).
This all works fine, but when a duplicate is found I want the text in
the Client Code textbox to be highlighted so that the user can simply
type the new code instead of having to backspace over the already
entered code.
I've tried a variety of things (setfocus, AfterUpdate, "", etc).
Any suggestions?
Bruce