>It works great
>
>using seek
>
>If the item is found, its' high-lighted
>
>However if the item is not found, the cursor goes and highlights any
>aleatory record
>
>Can I prevent it the item is not found ?
>
>Moises
I think you may reset HighlightStyle to 0 in this case. E.g.
if not seek(myCond,'myTable)
thisform.grd1.HighlightStyle = 0
endif
And you may re-set it back when grid receives focus.
If it's not broken, fix it until it is.
My Blog