Indicates the number that uniquely identifies an Error object.
Returns a Long value that may correspond to one of the ErrorValueEnum constants.
Use the Number property to determine which error occurred. The value of the property is a unique number that corresponds to the error condition.
The Errors collection returns an HRESULT in either hexadecimal format (for example, 0x80004005) or long value (for example, 2147467259). These HRESULTs can be raised by underlying components, such as OLE DB or even OLE itself. For more information about these numbers, see Chapter 16 of the OLE DB Programmer's Reference.
Visual Basic Example | Visual C++ Example | Visual J++ Example
Description Property | HelpContext, HelpFile Properties | Source Property (ADO Error)
Applies To: Error Object