NativeError
This property returns a numeric value specifying the native database error number.
Group: System Error
Syntax: vValue = SysErr.ErrNative([vIndex])
vValue (Variant) is the database error number.
vIndex (Long) Optional – is the error number to view. Note: this value is zero-based and defaults to 1.
Example:
Dim vError As Variant
vError = SysErr.NativeError(0)