When a Microsoft® Repository interface member generates an error, Automation programs can access the Repository error object through the global Err object. The first error in a Repository error queue is the error that is placed into the Err object.
In Microsoft Visual Basic®, you can use the On Error statement to invoke an error handler when an error is encountered. In the error handler, access the global Err object's properties to retrieve the error information.
Only the first error in the Repository error queue is accessible through the Err object.