Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Updating Table with Duplicate Information

Status
Not open for further replies.

JockVSJock

Technical User
Jun 28, 2001
59
US
I've created a database based off of three tables that tracks
what I buy for groceries. There is a main table which tracks the item and then the price and the location.

I've set it up under the index on each table to allow for duplications.

When I enter in a duplicate entry into a form that collects the information, I receive this output:

"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 allow for duplicate entries."

Can anyone tell me why I am receiving this output?

thanks

-Chris
 
Your table has fields that allow no duplicates. Your input data has entries that would cause then to be added - as duplicates and your told ACCESS not to allow dupes. It (ACCESS) is only doing what you asked.

Rollie E
 


My bad....

I forgot I needed to change the index for all fields, not just for one or two fields.

thanks

-Chris

 
My bad....

I forgot I needed to change the index for all fields, not just for one or two fields.

thanks

-Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top