mnongkhlaw
Programmer
Dear folks,
I have an ASP with fields bound to an Access database.
When I test the page by adding a duplicate primary key and clicking Save button, I get :
Error Type:
Microsoft JET Database Engine (0x80004005)
The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
/hardware/_ScriptLibrary/Recordset.ASP, line 311
How do I display a friendly message in lieu of the above and then return the user to the page with focus on the primary field's textbox?
Please help.
Mark
mark@shillong.meg.nic.in
I have an ASP with fields bound to an Access database.
When I test the page by adding a duplicate primary key and clicking Save button, I get :
Error Type:
Microsoft JET Database Engine (0x80004005)
The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
/hardware/_ScriptLibrary/Recordset.ASP, line 311
How do I display a friendly message in lieu of the above and then return the user to the page with focus on the primary field's textbox?
Please help.
Mark
mark@shillong.meg.nic.in