473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Access 2000: Duplicate Values in Index Problem

I have a database in a Front-End/Back-End User Environment, which has been
running fine, for 4 years. Lately, when the users try to enter data (from
a form into a single table) they've been getting the message that they
can't add the records, because it would create "duplicate Values in the
Index". The table's Primary Key is an AutoNumber Increment field. To
solve the problem, I copied the table structure to a new table, and
appended all of the records, rebuilding the new table's index from scratch.
This worked fine, for 2 weeks. Now, suddenly, the message is showing up,
again. The table presently contains over 900 records, however the index
wants to jump back to somewhere around 700. I "fixed" the problem, the
same way, again, but would like to know what may be causing this, and how I
can prevent it from continuing to happen. Thanks.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
3 3820
Bari Allen via AccessMonster.com wrote:
I have a database in a Front-End/Back-End User Environment, which has been
running fine, for 4 years. Lately, when the users try to enter data (from
a form into a single table) they've been getting the message that they
can't add the records, because it would create "duplicate Values in the
Index". The table's Primary Key is an AutoNumber Increment field. To
solve the problem, I copied the table structure to a new table, and
appended all of the records, rebuilding the new table's index from scratch.
This worked fine, for 2 weeks. Now, suddenly, the message is showing up,
again. The table presently contains over 900 records, however the index
wants to jump back to somewhere around 700. I "fixed" the problem, the
same way, again, but would like to know what may be causing this, and how I
can prevent it from continuing to happen. Thanks.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sounds like a corrupted DB. Have you tried Compact & Repair?

On the corruption part: Does each user have their own copy of the front
end on their PC? If more than one user is using the same front-end
corruption of the data can occur.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQh9+k4echKqOuFEgEQK2+wCgizw2d/3Tmy5CBc+DSOwwbbyLb5MAmwfq
TAwMj49vTyVpaMSr33cXVEjN
=chtr
-----END PGP SIGNATURE-----
Nov 13 '05 #2
Thank you for your reply, this has already happened, again. No--they do
not have their own front-ends, as only one person enters data, and there is
only one other person that accesses it to read the information. As for
compact/repair, yes I've tried that, and it hasn't solved the problem. The
database already has the front/back split, so I'll try putting it on their
individual machines & see if it makes a difference. I have no other ideas
as to why this keeps happening, all of a sudden, over the last month for a
program that's been in use for many years. If anyone else can offer an
opinion, I'm willing to hear. Thank you.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #3
Hi Bari,

This is a bug in MS Access recognised by MS and not helped by Jet SP8.
There are a couple of articles in the KB on this but no really
satisfactory work-around and the cause is not well defined (an
"improperly seeded" column!!). There are DDL queries you can use e.g.

ALTER TABLE TableName ALTER COLUMN AutoNumFieldName COUNTER(iMaxID,1);

to "reseed" the autonumber column but you have to remove the table
from all relationships for this to work. This was no good in my case.
The only solution I can see is to change the field to number and then
write your own auto-number function - not very good I know.

Hope this helps,

Peter

"Bari Allen via AccessMonster.com" <fo***@AccessMonster.com> wrote in message news:<0d******************************@AccessMonst er.com>...
Thank you for your reply, this has already happened, again. No--they do
not have their own front-ends, as only one person enters data, and there is
only one other person that accesses it to read the information. As for
compact/repair, yes I've tried that, and it hasn't solved the problem. The
database already has the front/back split, so I'll try putting it on their
individual machines & see if it makes a difference. I have no other ideas
as to why this keeps happening, all of a sudden, over the last month for a
program that's been in use for many years. If anyone else can offer an
opinion, I'm willing to hear. Thank you.

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
0
by: Frances | last post by:
Hi All, I'm having a problem trying to add a record to a simple Access 2000 db (db is very similar to an address book but with more info than the usual address, phone, etc.). The database is...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
5
by: bobdydd | last post by:
Hi Everbody Access 2000, Windows XP, Outlook 2000, When I open my database it is set to attach to my Outlook 2000 Inbox. So far so good..... The attaching procedure works OK and I am able to...
1
by: peck2000 | last post by:
Here's a strange problem. I've built an Classic ASP application with an Access 2003 DB on the backend on my website to track my comic book collection. The site is running on a dedicated Win2003...
4
by: corey11 | last post by:
I'm a very low-level developer with limited VB knowledge but nonetheless was able to put together a very user-friendly and extremely helpful Access 97 database for my company some 10 years back. We...
6
by: ashes | last post by:
Hi, I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net When someone wants to register on the website, they fill out a form and the...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.