Contents Index Topic Contents |
Source Property (Error) ADO
Indicates the name of the object or application that originally generated an error.
Applies To
Return Values
Returns a String value.
Remarks
Use the Source property on an Error object to determine the name of the object or application that originally generated an error. This could be the object's class name or programmatic ID. For errors in ADODB, the property value will be ADODB.ObjectName where ObjectName is the name of the object that triggered the error. The Source property is read-only for Error objects.
Based on the error documentation from the Source, Number, and Description properties of Error objects, you can write code that will handle the error appropriately.
Examples
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.