PC Review


Reply
Thread Tools Rate Thread

After entering 83 records unable to go on to next record

 
 
=?Utf-8?B?RGVl?=
Guest
Posts: n/a
 
      7th Nov 2007
someone else set all the fields up for me as I'm not familiar with Access and
I was just putting in the data, and got through to no. 84 and entered the
data - when I tried to go to the next one a message came up saying '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'. I haven't
a clue - all I know is that this record was no different to the other 83!
Help please
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      7th Nov 2007
This error means that you've entered the same value in one of the fields
that is the same as in one of the previous 83 records. A Unique Index or
Primary Key (the two things the message box is referring to) won't allow you
to do that.

If you go into the Design View of the table, there will be a little key
symbol on the field(s) that make up the primary key. Check that field in
your data to see if the value of that field in record 84 matches any of the
other records. If it doesn't, check the properties of each of the other
fields (again in Design View). If any of the them say *Indexed: Yes, no
duplicates*, then check that field as well for duplicate values.


--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"Dee" <(E-Mail Removed)> wrote in message
news9AC98D5-8E03-43E7-A9DE-(E-Mail Removed)...
> someone else set all the fields up for me as I'm not familiar with Access
> and
> I was just putting in the data, and got through to no. 84 and entered the
> data - when I tried to go to the next one a message came up saying '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'. I
> haven't
> a clue - all I know is that this record was no different to the other 83!
> Help please



 
Reply With Quote
 
=?Utf-8?B?TGFuY2U=?=
Guest
Posts: n/a
 
      7th Nov 2007
Your table has a primary key set up and it doesn't allow you to enter the
same value in that field more than once. The record you are trying to add
has a value in the key field which already exists in your table. You will
need to give your new record a unique value for that field to add it, you
also might want to verify that it should be added.

"Dee" wrote:

> someone else set all the fields up for me as I'm not familiar with Access and
> I was just putting in the data, and got through to no. 84 and entered the
> data - when I tried to go to the next one a message came up saying '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'. I haven't
> a clue - all I know is that this record was no different to the other 83!
> Help please

 
Reply With Quote
 
=?Utf-8?B?RGFsZSBGeWU=?=
Guest
Posts: n/a
 
      7th Nov 2007
To go one step further, you may also have a multi-field index. The best way
to check your indexes is to open your table in design view, then click the
"Indexes" item on the toolbar (it has a lightning bolt on the right side of
the image). This will pull up a list of the indexes on your table. If you
have a multi-column index you will see a Index name in the left colum, and
then multiple field names in the second column. If you click on the Index
Name, you will see the Index properties, which indicate wheter the index is
Unique.

HTH
Dale

--
Don''t forget to rate the post if it was helpful!

Email address is not valid.
Please reply to newsgroup only.


"Roger Carlson" wrote:

> This error means that you've entered the same value in one of the fields
> that is the same as in one of the previous 83 records. A Unique Index or
> Primary Key (the two things the message box is referring to) won't allow you
> to do that.
>
> If you go into the Design View of the table, there will be a little key
> symbol on the field(s) that make up the primary key. Check that field in
> your data to see if the value of that field in record 84 matches any of the
> other records. If it doesn't, check the properties of each of the other
> fields (again in Design View). If any of the them say *Indexed: Yes, no
> duplicates*, then check that field as well for duplicate values.
>
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
> "Dee" <(E-Mail Removed)> wrote in message
> news9AC98D5-8E03-43E7-A9DE-(E-Mail Removed)...
> > someone else set all the fields up for me as I'm not familiar with Access
> > and
> > I was just putting in the data, and got through to no. 84 and entered the
> > data - when I tried to go to the next one a message came up saying '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'. I
> > haven't
> > a clue - all I know is that this record was no different to the other 83!
> > Help please

>
>
>

 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      12th Nov 2007
Lance <(E-Mail Removed)> wrote:

>Your table has a primary key set up and it doesn't allow you to enter the
>same value in that field more than once. The record you are trying to add
>has a value in the key field which already exists in your table. You will
>need to give your new record a unique value for that field to add it, you
>also might want to verify that it should be added.


Actually it can be an index that is setup. Not just a primary key.
Furthermore, as Dale points out, it can cover multiple fields.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering Records ThomP Microsoft Access 3 8th Jan 2009 01:37 PM
Re: Entering many new records at once Rob Oldfield Microsoft Access Form Coding 5 2nd Dec 2005 01:52 PM
Entering multiple records at once... Kon Microsoft Access Forms 1 23rd Jul 2005 01:55 AM
Entering records Steve Microsoft Access Getting Started 3 11th Feb 2004 02:17 PM
entering records Susan Microsoft Access Getting Started 2 14th Oct 2003 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:38 AM.