>Thanks for the second answer.
>About the first :
>I have to check if a record exist, I usually launch a message which tells the user that the record was not found, now I was asked to leave the focus on the same control or in some case to set the focus to the preceding column.
>I put the code in the lost focus event, something like this :
>do case
> case somecondition
> this.setfocus()
> case othercondition
> this.parent.parent.columns(ncol).txt.setfocus()
>endcase
>*
>this approach does not work properly, maybe i interact in a wrong way with my classes but i'm very mixed up
>*
I remember a problem with this issue, but the memory it is not perfect.
try:
this.parent.parent.columns(ncol).setfocus