>How do I test that the user is moving to a new row in a grid before the current row loses focus.
>
>I have been working on this all day because I want to run a procedure using the current row's data only when a new row is selected.
>
>Any ideas?
>
>Thanks,
>
>Mitch
Hi Mitch,
I don't know, if it would help, but this is what I have. Our grid class has a property nCurRec. In AfterRowColChange event of the grid I check, if this.nCurRec<>recno(this.RecordSource) && (usually I just use a table name here), and if it doesn't, I execute some code and this.nCurRec=recno(). You can also use the similar code in BeforeRowColChange event. So, using this property, I can easily identify, was it movement between rows or between columns.
HTH
If it's not broken, fix it until it is.
My Blog