Does anyone out there know how to trap an error in an ADO operation? For example, when using the update method after the addnew method, if the record I'm adding would create a duplicate primary key, an ADO error displays, but I haven't been able to determine how to capture the error code. Any help would be appreciated.