Try this:
In the lost focus event:
if seek(MyKey,"MyTable","MyIndex")
MyForm.MyGrid.SetFocus
MyForm.MyGrid.Refresh
Else
* Process Key not in Table
endif
>Hello,
>
>I have a form with a Grid control on it tied to an indexed table. I also have a text field on the form. What I would like to do is as I type text into the field, I would like the table searched and the corresponding record in the grid highlighted (or the one most closely matching).
>
>I have seen this done, and am trying to do this, but I can't get the record to highlight.
>
>Any suggestions?
>
>Thanks All!
Imagination is more important than knowledge