Partager via


ODBCError Interface

Represents an ODBC error generated by the most recent ODBC query.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("0002442C-0000-0000-C000-000000000046")> _
Public Interface ODBCError
'Usage
Dim instance As ODBCError
[InterfaceTypeAttribute()]
[GuidAttribute("0002442C-0000-0000-C000-000000000046")]
public interface ODBCError

Remarks

The ODBCError object is a member of the ODBCErrors collection. If the specified ODBC query runs without error, the ODBCErrors collection is empty. The errors in the collection are indexed in the order in which they’re generated by the ODBC data source.

Use ODBCErrors(index), where index is the index number of the error, to return a single ODBCError object.

See Also

Reference

ODBCError Members

Microsoft.Office.Interop.Excel Namespace