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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

There is no duplicate, so why does access tell me there is?



 
 
Thread Tools Display Modes
  #1  
Old January 4th, 2010, 12:31 PM posted to microsoft.public.access
Jonathan A. Cheyne[_2_]
external usenet poster
 
Posts: 4
Default There is no duplicate, so why does access tell me there is?

Hi there guys,
On a simple database I built about a year and a half ago, and use regularly,
I today needed to add some more records. The first one went on fine, after
that however, I tried to add a second, and recieved an error message saying
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship."
(Error 3022). I know that the data I am inputting is not a duplicate of
anything else in the table (or even the entire database), and to prove this,
tried inputting random data, only to be presented with the same error
message. I'm not a particularly accomplished user of Access, so would
appreciate any help that could be offered.
Thanks a bunch,

Jonathan A. Cheyne
  #2  
Old January 4th, 2010, 12:39 PM posted to microsoft.public.access
Paul Shapiro
external usenet poster
 
Posts: 635
Default There is no duplicate, so why does access tell me there is?

Try the Compact & Repair option, which rebuilds indexes from the data. If
the problem persists, try creating a new blank db and importing everything
from the current db.

"Jonathan A. Cheyne" (no spam please, we''re
british) wrote in message
...
Hi there guys,
On a simple database I built about a year and a half ago, and use
regularly,
I today needed to add some more records. The first one went on fine, after
that however, I tried to add a second, and recieved an error message
saying
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship."
(Error 3022). I know that the data I am inputting is not a duplicate of
anything else in the table (or even the entire database), and to prove
this,
tried inputting random data, only to be presented with the same error
message. I'm not a particularly accomplished user of Access, so would
appreciate any help that could be offered.
Thanks a bunch,

Jonathan A. Cheyne


  #3  
Old January 4th, 2010, 01:45 PM posted to microsoft.public.access
MikeJohnB
external usenet poster
 
Posts: 464
Default There is no duplicate, so why does access tell me there is?

For database pre 2007 (not to sure of 2007), the auto number field used for
indexes, used to get corrupted and the database used to jump back into the
autonumber field within a gap made previously by deleted data. This meant
that when the autonumber field eventually filled the gap, the next autonumber
became a duplicate. (I have come accross this problem)

The way around this is to run the compact and repair facility (but make sure
you make a copy of your database first).

I hope this helps??
--
Advice to Posters.
Check your post for replies or request for more information.
Consider providing some feed back to the response you have recieved.
Kindest Regards Mike B


"Jonathan A. Cheyne" wrote:

Hi there guys,
On a simple database I built about a year and a half ago, and use regularly,
I today needed to add some more records. The first one went on fine, after
that however, I tried to add a second, and recieved an error message saying
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship."
(Error 3022). I know that the data I am inputting is not a duplicate of
anything else in the table (or even the entire database), and to prove this,
tried inputting random data, only to be presented with the same error
message. I'm not a particularly accomplished user of Access, so would
appreciate any help that could be offered.
Thanks a bunch,

Jonathan A. Cheyne

  #4  
Old January 8th, 2010, 01:44 PM posted to microsoft.public.access
Jonathan A. Cheyne[_2_]
external usenet poster
 
Posts: 4
Default There is no duplicate, so why does access tell me there is?

Woops.
Sorry guys, just noticed a screw-up i made when adding a new field recently
which caused this.
thanks for your help anyways!
--
Jonathan A. Cheyne


"MikeJohnB" wrote:

For database pre 2007 (not to sure of 2007), the auto number field used for
indexes, used to get corrupted and the database used to jump back into the
autonumber field within a gap made previously by deleted data. This meant
that when the autonumber field eventually filled the gap, the next autonumber
became a duplicate. (I have come accross this problem)

The way around this is to run the compact and repair facility (but make sure
you make a copy of your database first).

I hope this helps??
--
Advice to Posters.
Check your post for replies or request for more information.
Consider providing some feed back to the response you have recieved.
Kindest Regards Mike B


"Jonathan A. Cheyne" wrote:

Hi there guys,
On a simple database I built about a year and a half ago, and use regularly,
I today needed to add some more records. The first one went on fine, after
that however, I tried to add a second, and recieved an error message saying
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship."
(Error 3022). I know that the data I am inputting is not a duplicate of
anything else in the table (or even the entire database), and to prove this,
tried inputting random data, only to be presented with the same error
message. I'm not a particularly accomplished user of Access, so would
appreciate any help that could be offered.
Thanks a bunch,

Jonathan A. Cheyne

 




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 11: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.