E
|
electromotive 5/6/2010 |
A user gets the error message below when trying to Add Record and the record violates the database table's primary key. How can I add to this message or change the error message to give instructions on how to correct it? I would like the user to get the instruction that they cannot add a record that has the same date or time. ------------------------------------------ <<< Record was NOT added >>> [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_tbl_NPAU_log_2'. Cannot insert duplicate key in object 'dbo.tbl_NPAU_log'. ----------------------------- Thank you very much.
|
J
|
jackieh author 5/6/2010 |
Thanks electro rick! |
![]() |
Sergey Kornilov admin 5/7/2010 |
This error message is coming directly from the database which means you cannot change it. |
J
|
jackieh author 5/7/2010 |
This error message is coming directly from the database which means you cannot change it. What electro rick suggests is a solid idea.
|