Guest_imported
New member
- Jan 1, 1970
- 0
I am deleting records programatically from a table indexed on the first two fields using...
Table2.Delete;
When I try to add new records to that table in a different unit I get the Record/Key deleted error as soon as I do...
Table2.Edit;
*However* if I exit the program and restart it everything works fine. I suspect the BDE is losing track of what records are in the table and throwing up this error. It seems similar to another problem I had with cached data not being written out which I fixed with FlushBuffers. Since I'm not editing the table per se but using the Delete method that won't work. Any ideas?
TIA
Paul
Table2.Delete;
When I try to add new records to that table in a different unit I get the Record/Key deleted error as soon as I do...
Table2.Edit;
*However* if I exit the program and restart it everything works fine. I suspect the BDE is losing track of what records are in the table and throwing up this error. It seems similar to another problem I had with cached data not being written out which I fixed with FlushBuffers. Since I'm not editing the table per se but using the Delete method that won't work. Any ideas?
TIA
Paul