Chistine,
If the index is marked as a Primary or Candidate key you can't reuse values even if they are marked for deletion. If you use integers as your key field, you can use autoincrementing fields in VFP 8 or setup a routine to grab a value from a key table and then increment it in the key table in earlier versions.
Or, better yet, switch to GUIDs.
HTH,
>I am using the VFP tables. I have a situation where, you enter a record and the user enters a unique key. The record is then deleted. Later another record with the same key is entered. an error occurs regarding the uniqueness of the key. Why does this error occur. When I browse the VFP table I do see that the old record is there and marked for deletetion. Is there a way to avoid this problem with out packing and reindexing the table?
>
>Thank you in advance
>Christine
Jim