Share via


CDaoException::GetErrorCount

Call this member function to retrieve the number of DAO error objects in the database engine's Errors collection.

short GetErrorCount( );

Return Value

The number of DAO error objects in the database engine's Errors collection.

Remarks

This information is useful for looping through the Errors collection to retrieve each of the one or more DAO error objects in the collection. To retrieve an error object by index or by DAO error number, call the GetErrorInfo member function.

Note

Normally there is only one error object in the Errors collection. If you are working with an ODBC data source, however, there could be more than one.

Requirements

Header: afxdao.h

See Also

Reference

CDaoException Class

Hierarchy Chart