>>When user clicks on grid, focus is moved there. In this case, you could move focus away in code before zap/insert. You may set it to any control on your form, and then return it back to grid after insert.
>
>Thanks. That seems to have done the trick.
>
>Tamar
Glad it's fixed . . . just a note . . . one person mentioned having the problem when the grid wasn't on the first record. If that person saw what I was seeing, they may have perceived it that way, but what I saw happening was more subtle. If the grid had n1 records before the refresh and after the refresh the grid had n2 records and before the refresh the record pointer was on record n2 + 1 or above, then the grid's records would disappear. For example, n1 = 5 and n2 = 2. The record pointer is on n2 + 1 (record 3) to start off. After the refresh, record 3 no longer exists. This causes the problem. If the record pointer starts off at n2 or less, then I did not encounter a problem. Of course, the easy answer was to GO TOP in the cursor before the refresh, which is perhaps why the person said that it had to be on the first record. Not really . . . in my experience it just has to be on record n2 or less prior to the refresh.