Sorry, Chuck, I could not concentrate on your problem, because I was working on some code modifications in my applications...
What if you switch in KeyPress:
if nKeyCode=13
nodefault
this.value=this.value
thisform.MyFind
endif
If would not work, add lastkey condition in LostFocus(), as you suggested.
>Can't, since it would mean anytime I leave the field, MyFind() fires. I only want to do this on when the Enter key is pressed anywhere IN the textbox. Unless you meant I use IF LASTKEY()=13??
>
>Chuck
>
>>I think is better to call thisform.MyFind from TextBox.LostFocus event. Delete it from KeyPress, put in LostFocus thisform.MyFind(). This will work better.
If it's not broken, fix it until it is.
My Blog