snerting
Programmer
- Oct 20, 2005
- 52
Hi!
Deleting rows in my app is not supposed to actually delete a row in the table, but rather set a field to "1" thus describing the row as deleted.
To make this work, and at the same time granting people the possibility to hit "delete" on rows, I have implemented the Form_Delete event and set Cancel = True. Now, this works perfectly the first time you hit "Delete" on any given row. The problem, though, emerge when you hit "Delete" more than one time. Other than the first time, I can't even have the code break on "Form_Delete", even though I set a breakpoint on the method itself. This is obviously a problem as my routine of setting a field to 1 instead of actually deleting the row is ignored, and the row is actually deleted.
Using MS Access 2003 with VB6.
Deleting rows in my app is not supposed to actually delete a row in the table, but rather set a field to "1" thus describing the row as deleted.
To make this work, and at the same time granting people the possibility to hit "delete" on rows, I have implemented the Form_Delete event and set Cancel = True. Now, this works perfectly the first time you hit "Delete" on any given row. The problem, though, emerge when you hit "Delete" more than one time. Other than the first time, I can't even have the code break on "Form_Delete", even though I set a breakpoint on the method itself. This is obviously a problem as my routine of setting a field to 1 instead of actually deleting the row is ignored, and the row is actually deleted.
Using MS Access 2003 with VB6.