ADODB Object
 
Syntax
 
string = errorobject.Description
 
Description
Returns a string that describes the error. This is the default property.
 
The Description property returns a string that is a brief textual description of the error. This is the default property for the Error object. Since both the provider and ADO can generate errors, either may be the source of the error.
 
It is the responsibility of the provider to pass error information, including the description string, to ADO. When an error does occur, it is the responsibility of ADO to create an Error object, which contains all of the error information, and to add that object to the Errors Collection.
See Also
Example
 
Dim ErrorInfo As String
 
For Each objError in objConnection
   ErrorInfo = "Description; " & objError.Description & vbNewline & _
      "Help Context: " & objError.HelpContext & vbNewline & _
      "Help File: " & objError.HelpFile & vbNewline & _
      "Native Error: " & objError.NativeError & vbNewline & _
      "Number: " & objError.Number & vbNewline & _
      "Source: " & objError.Source & vbNewline & _
      "SQL State: " & objError.SQLState & vbNewline
 
   Debug.Print ErrorInfo
Next