Here's the situation...in case another method can be used....
I'm selecting records in a combo, and in the Before update event I am checking for duplicates.... when one is found it triggers a message and I cancel/undo to clear the selection...I am then trying to send the ESCAPE key to, what I have below won't do it....
DoCmd.CancelEvent
Me.Document.Undo
SendKeys "{esc}"
thanks
I'm selecting records in a combo, and in the Before update event I am checking for duplicates.... when one is found it triggers a message and I cancel/undo to clear the selection...I am then trying to send the ESCAPE key to, what I have below won't do it....
DoCmd.CancelEvent
Me.Document.Undo
SendKeys "{esc}"
thanks