>Thanks, that worked finally. I did set delete off and it didn't want to work. So I put in the code right before I appended and that worked.
>
>Thanks again
>Nick
Sounds like you have your code in a private datasession form or a session class object. SET DELETED is scoped to the current datasession, so just setting it from the command window would not have any effect on a private datasession form or a session class.