Name
Errors.Clear Method — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
errors.ClearThe 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access