>Hi all,
>
>When I delete the first record in my client s table it should be erased.But when I close the form and then re-open it, the deleted record is still there.I check out code in delete method but it is right.And when I open the table that contains it, it has the delete mark.
A guess:
Your form, or framework, or whatever, has a GoTo 1 somewhere. You can GoTo a deleted record, and it will become the current record, regardless of its deleted() status. It is supposed that if you use the record's number to get to it, you really want that record for some reasons, and you get what you (supposedly) want.
Just find this line and replace it with a Locate (without any clauses), which will lead you to the first available record.