Error Objects

As you perform operations by using DAO, errors may occur. Each error is stored as an Error object in the Errors collection. You can use information contained in the Error object to determine what caused the error, and to display meaningful error messages to your users.

It’s important to note that as each DAO error occurs, the Errors collection is cleared of previous errors, and the new Error object is placed in the Errors collection. There can be several related Error objects in the collection caused by a single operation.

See Also For a list of errors returned by Microsoft Jet, see Appendix D, “Error Reference.”