473,407 Members | 2,315 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,407 software developers and data experts.

Re-using Old Autonumber Values

I've just had to upgrade to Access 2003. Our company's main sales database
started in Access V1.0 and has progressed through V2.0 and 97 without
problems. I've converted it to 2003 format and have been going through a
process of testing it. To my horror I noticed that seemingly without
provocation, it has started re-using old Autonumber values. For example, I
have an archive routine which removes completed sales enquiry records out of
the 'ongoing' enquiry tables, leaving 'holes' in the Autonumber sequence.
Access is re-using these old values for new records. Even worse, when I run
my archive routine, the re-used value conflicts with the original one in the
archive records and...........Access deletes them both!!

I've had a little sniff around the Internet and this problem (or something
like it) appears to be known for old versions of Jet, especially after
compacting and repairing (eg Knowledge Base Article 291162). However, my Jet
version is very recent (as it came with access 2003!) and I'm not aware that
I have done a compact and repair in the recent past. I have also seen a
number of people saying don't use Autonumber because it is flawed, instead
use a 'manual' incrementing system. This would be an enormous task as my
database relies on Autonumber in dozens of tables.

This has become a meltdown issue for us. Any help much appreciated.

Cheers,

Phil.
Nov 12 '05 #1
1 1734
Did you update your Jet versions as suggested in the Knowledgbase articles?
This supposedly will take care of your issue. Note that you'll want to do
this on ALL your machines ...
--
Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP

"Smash forehead on keyboard to continue ... "
"BT Openworld" <ac*********@btopenworld.com> wrote in message
news:c0**********@sparta.btinternet.com...
I've just had to upgrade to Access 2003. Our company's main sales database
started in Access V1.0 and has progressed through V2.0 and 97 without
problems. I've converted it to 2003 format and have been going through a
process of testing it. To my horror I noticed that seemingly without
provocation, it has started re-using old Autonumber values. For example, I
have an archive routine which removes completed sales enquiry records out of the 'ongoing' enquiry tables, leaving 'holes' in the Autonumber sequence.
Access is re-using these old values for new records. Even worse, when I run my archive routine, the re-used value conflicts with the original one in the archive records and...........Access deletes them both!!

I've had a little sniff around the Internet and this problem (or something
like it) appears to be known for old versions of Jet, especially after
compacting and repairing (eg Knowledge Base Article 291162). However, my Jet version is very recent (as it came with access 2003!) and I'm not aware that I have done a compact and repair in the recent past. I have also seen a
number of people saying don't use Autonumber because it is flawed, instead
use a 'manual' incrementing system. This would be an enormous task as my
database relies on Autonumber in dozens of tables.

This has become a meltdown issue for us. Any help much appreciated.

Cheers,

Phil.

Nov 12 '05 #2

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

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
1
by: Clarice Almeida Hughes | last post by:
tenho um index onde tenho o link pro arq css, como sao visualizados pelo include todas as paginas aderem ao css linkado no index. so q eu preciso de alguns links com outras cores no css, o q devo...
2
by: JW | last post by:
I wanted have this as part of a flood control script: <? echo ("Flood control in place - please wait " . $floodinterval . " seconds between postings."); sleep(5); // go back two pages echo...
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: 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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.