Share via


OLEDBError.Stage Property (Excel)

Returns a numeric value specifying the stage of an error that resulted after the most recent OLE DB query. Read-only Long.

Syntax

expression .Stage

expression A variable that represents an OLEDBError object.

Example

This example displays the error numbers, stage, and other error information returned by the most recent OLE DB query.

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

See Also

Concepts

OLEDBError Object Members

OLEDBError Object