Hi,
I'm working on an app - VB6 front end & MySQL backend - have a routine to delete all the records in selected tables. Works fine on all tables bar one in which it deletes the first record then does a recset.movenext and in the attempt to delete the next record throws up the following error:-
"Query-based delete failed because the row to delete could not be found."
I have searched for any instances of that table being left open but can't find any and can't work out why I would be getting this error msg.
Any ideas about what to try next would be greatly appreciated or if there is an easier way to empty a table from VB then I'd like to hear about it.
Regards, Doug.
I'm working on an app - VB6 front end & MySQL backend - have a routine to delete all the records in selected tables. Works fine on all tables bar one in which it deletes the first record then does a recset.movenext and in the attempt to delete the next record throws up the following error:-
"Query-based delete failed because the row to delete could not be found."
I have searched for any instances of that table being left open but can't find any and can't work out why I would be getting this error msg.
Any ideas about what to try next would be greatly appreciated or if there is an easier way to empty a table from VB then I'd like to hear about it.
Regards, Doug.