This documentation is archived and is not being maintained.

CDaoException::GetErrorCount 

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


short GetErrorCount( );

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

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.

NoteNote

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.

Show: