Back when vfp was enhanced, my idea for an additional parameter for indexseek to ignore set deleted filtering was not wanted - which was meant for such situations. Still, your code for replace/insert ***should*** take care of that: either set deleted off for the check and reset or add another check with for deleted(). That way THAT error would never occur, no idea of the coworkers addition would have created other problems in the system
>>Deleted record was the solution.
>>Late coworker had added a place to delete records I've never thought off.
>>
>>Customer seems to use this on regular base, but normaly the garbage collection catches the problem.
>>
>>(>ლ)
>
>Update
>
>
>REPLACE;
> cXYZ WITH SYS(2015);
> FOR lMark
>TABLEUPDATE(0,.T.)
>
>
>will update how many records, exactly? OMIPU
>
>I head for a coffee.