Syntax
| long = errorobject.NativeError
|
---|---|
Description
| Returns a long value that is the database error information for a specific Error object.
The NativeError property is a long value that is an error code that is returned to ADO by the data source or the provider when an error occurs. ADO uses the NativeError property to allow access to this underlying error code.
You will have to refer to the data source/provider documentation for an explanation of the returned error code.
|
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
|