Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 972 Bytes

Excel.Application.OLEDBErrors.md

File metadata and controls

39 lines (24 loc) · 972 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.OLEDBErrors property (Excel)
vbaxl10.chm133244
vbaxl10.chm133244
Excel.Application.OLEDBErrors
0a42417f-f8b6-10bf-712a-44c1107f0f3e
04/05/2019
medium

Application.OLEDBErrors property (Excel)

Returns the OLEDBErrors collection, which represents the error information returned by the most recent OLE DB query. Read-only.

Syntax

expression.OLEDBErrors

expression A variable that represents an Application object.

Example

This example displays the error description and SqlState property value for an OLE DB error returned by the most recent OLE DB query.

Set objEr = Application.OLEDBErrors.Item(1) 
MsgBox "The following error occurred:" & _ 
 objEr.ErrorString & " : " & objEr.SqlState

[!includeSupport and feedback]