VBA-Programmierung in Microsoft Excel

Tutorial: Excel-Beispiele

VBA-Begriff: Beispiel zur Item-Methode (ODBCErrors-Auflistung)

In diesem Beispiel wird ein ODBC-Fehler angezeigt.

Set er = Application.ODBCErrors.Item(1)
MsgBox "The following error occurred:" &
    er.ErrorString & " : " & er.SqlState