A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Duplicate Values in the index, primary key or relationship



 
 
Thread Tools Display Modes
  #1  
Old January 20th, 2010, 05:21 PM posted to microsoft.public.access.tablesdbdesign
denise
external usenet poster
 
Posts: 388
Default Duplicate Values in the index, primary key or relationship

Could you tell me what I need to do to get this not to give me an 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 date in the field or fields that contain the duplicate date,
remove the index, or redefine the index to permit duplicate entries and try
again.

thanks.
--
Denise B.
  #2  
Old January 20th, 2010, 05:58 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Duplicate Values in the index, primary key or relationship

Denise

As the error message suggests, your table has data that would invalidate a
key, an index or a relationship.

You'll need to find/fix that duplicate data before re-trying to index the
field(s).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Denise" wrote in message
...
Could you tell me what I need to do to get this not to give me an 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 date in the field or fields that contain the duplicate date,
remove the index, or redefine the index to permit duplicate entries and
try
again.

thanks.
--
Denise B.



  #3  
Old January 20th, 2010, 09:34 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default Duplicate Values in the index, primary key or relationship

As I learned from my many errors....

I think that the most common case of seeing that message is when entering a
new record which has a PK field value which duplicates that of a previous
record.


  #4  
Old January 21st, 2010, 07:02 AM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Duplicate Values in the index, primary key or relationship

Need to run a 'match' query to find duplicate record.
--
Build a little, test a little.


"Fred" wrote:

As I learned from my many errors....

I think that the most common case of seeing that message is when entering a
new record which has a PK field value which duplicates that of a previous
record.


  #5  
Old January 21st, 2010, 07:49 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default Duplicate Values in the index, primary key or relationship

Karl,

I've seen this message lots of times, and 100% of them were the following
case:

I was referring to when the duplicate "record" is not even a record
yet...e.g. someone just entered a new record with a manually entered PK, and,
when you they to move off the new record (i.e. when Access woudl otherwise
enter it) , Access rejects it and gives this error message.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.