> PROCEDURE cmdadd.Click
>
>
> thisform.txtname.visible=.t.
> thisform.combo1.visible=.f.
>
> thisform.cmdsave.visible = .t.
> thisform.cmdabort.visible = .t.
> *select rob
> scan for empty(name)
> blank
> dele
> endscan
> goto top
>
> set dele off
> loca for deleted()
> if found()
> m_add_mode = .f.
> blank
> recall
> else
>
> m_add_mode = .t.
>
> append blank
>
>
> endif
> set dele on
>
> thisform.refresh
> thisform.txtname.setfocus
> ENDPROC
Robert,
In the code above you never select a work area (because that line is commented out), how are you sure that the sacn and append commands are working in the work area that you want them to? You also call a form refresh which will execute the refresh of all of the controls in the form, is there any code in any of those control's refresh methods that might move the record pointer on you?