Looks good. Be sure to SELECT the target table before doing any REPLACE commands, because the replace doesn't happen if another work area is selected and the table in that work area is at EOF(). Probably you already took care of that in the code that precedes what you posted.
Rick
>Hi Rick,
>
>Thanks again for the reply.
>That's kinda what I worked out while I was off line. Thanks for validating my idea on that...
>
>
>SET ORDER TO DelRec IN MyTable
>SET DELETED OFF
>IF SEEK(.T., "MyTable"
> RECALL
> REPLACE Field1 WITH NewData, ;
> ...
>ELSE
> INSERT INTO MyTable;
> (Field1, ...);
> VALUES(NewData, ...)
>ENDIF
>= TABLEUPDATE(.T., .T., "MyTable"
>SET DELETED ON
>...
>
>
>
>Did I miss anything???
>
>Thanks
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.