Name
Errors.Clear Method — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
errors
.Clear
The Clear method erases all errors stored in the Errors collection.
Description
The Clear method clears the current collection of ADO errors. When a new runtime error is generated, the Errors collection is automatically cleared and then populated with the error information.
Use the Clear method when you are going to make calls to a Recordset object that might return multiple warnings. These calls include Delete, Resync, UpdateBatch, and CancelBatch. Once you have made any of these calls, after clearing the Errors collection, you can determine whether any warnings were generated by the call in question.
See Also
Recordset.CancelBatch Method, Recordset.Delete Method, Recordset.Resync Method, Recordset.UpdateBatch Method
Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.