I have a form that is based on a table and I would like to trap the error that is raised when a user inputs a record with a primary key value that already exists in the table. What I would like to do is then give my own error message rather than the Access error message. Any help would be greatly appreciated.