I did the following. I cut/paste the whole ClickEvent into MyFind (the referances are same and fine). I think it is working OK. Yet, when I open the form for first time (even second, third, fourth time, but first try after opening the form), it does not do the Find correctly, but after I try again (while the form is opened), it works... I don't understand, shouldn't make any different?? BTW, I rem out the NoDeFault because I want to do it over and over again, correct?
Chuck
>Add a method to your form, say, MyFind(). Put all your code, which you currently have in Command1.Click into this new method (update references to the objects, if needed).
>
>Now, in the Command1.Click just put thisform.MyFind() and the same in KeyPress:
>
if nKeyCode=13
> thisform.MyFind()
> nodefault
>endif
Today is tomorrow's yesterday.