CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Update problem

Print topic Send  topic

Author Message
Soy de un lugar
Posted: 07/09/2005, 8:22 PM

I have this problem...

for introducing one new employee in my table of access for update new employee getting this error

"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."

Please help my need this project...:(
wkempees
Posted: 07/12/2005, 2:03 AM

The error message states it clearly.
first check your table employee, look for the keys on this table.
It should have at least a primary key (ususaly Id) defined as unique.
Check all other keys, if they are defined as unique then probably your
problem lies there.

If there are no other unique keys, then you are probably trying to add a
row with an Id value that already exists.

In a normal generated grid/record this problem would not occur unless
your database is defined with multiple unique keys.
Field validation is the way to go around these problems.
BUT as a rule a table has ONE unique primary key.
greetz,
Walter

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.