473,322 Members | 1,345 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,322 software developers and data experts.

Still getting duplicate Autonumbers

Hi there,

After compacting/repairing a db, I was getting duplicate autonumbers.

According to MS KB article
http://support.microsoft.com/default.aspx?kbid=257408

This should be fixed with a Jet service pack.

The mentioned SP6 is apparently not available, but I found SP8. Have now
applied SP8 (I checked msjet40.dll and it's now the new version), restarted
windows, compacted and repaired the DB 6 times, but I still get duplicate
autonumbers.

It's not a linked database. I have tried a PC with winXp and access 2000,
and a pc with winXP and AccessXp.

It's an Access2000 database.

/jim
Nov 12 '05 #1
2 1575
Jim, what you have done is correct, i.e. applying the latest JET service
pack.

I'm not seeing this problem (though reading of others who do) so perhaps you
could try recreating:

1. Run the code in this link:
http://allenbrowne.com/ser-40.html
It resets the Seed of the autonumbers that have problems.

2. Create a new (blank) database.

3. Immediately, turn off the Name AutoCorrect options under:
Tools | Options | General.

4. Into this new database that was created under JET 4 SP8 and with the Name
AutoCorrect options disabled, import everything:
File | Get External | Import

Let us know if it solves the issue.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org..

"Jim Andersen" <ji*****@officeconsult.dk> wrote in message
news:bq**********@sunsite.dk...
Hi there,

After compacting/repairing a db, I was getting duplicate autonumbers.

According to MS KB article
http://support.microsoft.com/default.aspx?kbid=257408

This should be fixed with a Jet service pack.

The mentioned SP6 is apparently not available, but I found SP8. Have now
applied SP8 (I checked msjet40.dll and it's now the new version), restarted windows, compacted and repaired the DB 6 times, but I still get duplicate
autonumbers.

It's not a linked database. I have tried a PC with winXp and access 2000,
and a pc with winXP and AccessXp.

It's an Access2000 database.

Nov 12 '05 #2
Allen Browne wrote:
I'm not seeing this problem (though reading of others who do) so
perhaps you could try recreating:

1. Run the code in this link:
http://allenbrowne.com/ser-40.html
It resets the Seed of the autonumbers that have problems.
I used a "insert into" query with a new (max+1) autonumber.
4. Into this new database that was created under JET 4 SP8 and with
the Name AutoCorrect options disabled, import everything:


Unfortunaltely it doesn't import permissions, so I leave it in the old db,
cross my fingers, and hope it works ok

/jim
Nov 12 '05 #3

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

Similar topics

2
by: C L Humphreys | last post by:
Hi, I seem to have amassed a few thousand duplicates in an autonumber field. Is there a simple way of updating these to new numbers? Not sure if this is related - but I'm having problems...
6
by: John | last post by:
Hi We have a staff database and need to make sure that the same staff is not entered twice. Is there a way for Access to flag if combination of forename and surname fields is already in the...
0
by: Zen | last post by:
Can I use "autonumbers" with this configuration? Access XP + Jet 4.0 SP8 1) In some circumstances Autonumber fields cannot correctly reseeded? 2) Or they are properly stable (like Jet 3.5...
1
by: Gt394 | last post by:
I have an autonumber field that provides sequential Quote numbers for each entry in a form. If an entry begins but then the user wants to cancel the entry, the Cancel button simply clears all...
12
by: Sunny | last post by:
Hi All, I have a serious issue regarding classes scope and visibility. In my application, i have a class name "TextFile", and also a few other classes like "TotalWords", "TotalLines" and etc..,...
12
by: Jared Carr | last post by:
First I wish I knew how this was caused but here is our problem. Sometime in the recent past we got a duplicate table. Here is the result of a pg_dump with a pg_restore for just that table. ...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
1
by: Julie Smith | last post by:
Hi, I have a question about autonumbers in Access db. How are they assigned when adding a new row to a table? I have table that has an autonumber column (replication ID/System.Guid) and a name...
12
by: magmike | last post by:
Accidentally deleted a record. Anyway to get it back? If not, I know the ID number - which is an autonumber field. Because of the related data from other tables, would I be able to create a new...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.