Database.Error Property
Syntax
Error as Boolean
True if an error is returned from the database engine.