Number property (ADO)
Applies to: Access 2013, Office 2013
Indicates the number that uniquely identifies an Error object.
Return value
Returns a Long value that may correspond to one of the ErrorValueEnum constants.
Remarks
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.