I have a field name customer id which is a primary key. So everytime when a user tried adding a customer id which existed in the table, it will comes out an error msg. I would like to know how am i able to handle such error msg ? Eg .. if customer id exist, then an error msg will be printed out. For your information i am using oracle as my database.