>Hi all,
>I have a form with a grid on it.
>I select a row from grid, I edit some data in textboxes on the form and save them.
>In the last line of my save code I put below line:
>Thisform.grid1.setfocus
>But cursor goes into the last row in grid.
>How I can return to same row that I edit it?
You should move pointer in the grid.recordsource to the row you want. It's usually done by Seek() right before Setfocus.
Edward Pikman
Independent Consultant