Properties of the Error Object

Each Error object in an Errors collection provides information about a specific error that has occurred through its properties. The following table describes each of the properties of the Error object.

Property

DataType

Description

Description

String

The default property value. Contains the text of the error.

HelpContext

Long

Context ID of a topic in the Help file.

HelpFile

String

Name and location of the Help file.

NativeError

Long

Returns a long value used to retrieve the database-specific error information for an Error object.

Number

Long

Long integer value of the error constant.

Source

String

Identifies the object that raised the error.

SQLState

Variant

Returns a five character error code from the provider when an error occurs during the processing of a SQL statement.

There are no methods for the Error object.

0 0

Post a comment