I have table that I put in product information and it has these fields
[ProdNumber] [ProdName] [FaceValue] and the table name is [TblProductInfo]. The ProdNumber is the key and i set up form to enter new products that comes in. How can I code it when someone tries to enter duplicate that message will come up and tell them the product is already in instead of access standard message also if the product is already in they can leave the form. right now when i tried to enter duplicate I got the standrd error and when i delete i got the error message says Key field can't be null. Please help.
[ProdNumber] [ProdName] [FaceValue] and the table name is [TblProductInfo]. The ProdNumber is the key and i set up form to enter new products that comes in. How can I code it when someone tries to enter duplicate that message will come up and tell them the product is already in instead of access standard message also if the product is already in they can leave the form. right now when i tried to enter duplicate I got the standrd error and when i delete i got the error message says Key field can't be null. Please help.