>Any time you use the REPLACE command you MUST either be on the table you are writing to, or use REPLACE ... IN ...
Okay - that seems to be it. Funny, I would have thought that explicitly naming the field (eg ordentlines.somefield) would accomplish the same thing but apparently not. Thanks.
>
>Otherwise you will get some strange behavior (usually if the cursor you are currently sitting on is at end of file -- which matches the scenario you have outlined).
>
>
>>
***************************
Bruce Gilmour
"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein