473,473 Members | 1,894 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AutoNumber jumps numbering

Database has record 59 showing, tabing to enter data returns
autonumber to 134. What happened to cause this, how would I fix it?
Jun 27 '08 #1
9 5663
"Gogo" <ep****@cableone.netwrote in message
news:d6**********************************@u12g2000 prd.googlegroups.com...
Database has record 59 showing, tabing to enter data returns
autonumber to 134. What happened to cause this, how would I fix it?
1. Adding new records, then deleting them.
2. Begining to add a new record, then "undo-ing"
Fred Zuckerman
Jun 27 '08 #2
Gogo wrote:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. What happened to cause this, how would I fix it?
AutoNumber's only specification is that they be unique. If you have
requirements beyond that then don't use an AutoNumber.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jun 27 '08 #3
Part of your fix is to Compact the database.
"Fixing" the numbers is a more complex question.

Gogo <ep****@cableone.netwrote in news:d6f05294-1959-44de-b5c0-
38**********@u12g2000prd.googlegroups.com:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. What happened to cause this, how would I fix it?
Jun 27 '08 #4
Alan Forsyth <No*@iHome.nzwrote:
>Part of your fix is to Compact the database.
If the BE MDB is in A97 format then compacting will lower the next autonumber value
to 1 higher than the current highest number. However in A2000 the autonumber seed is
only reset to 1 if there are no records in the table and isn't reset to the highest
number present in the table.

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/
Jun 27 '08 #5
"Tony Toews [MVP]" <tt****@telusplanet.netwrote in
news:n1********************************@4ax.com:
Alan Forsyth <No*@iHome.nzwrote:
>>Part of your fix is to Compact the database.

If the BE MDB is in A97 format then compacting will lower the next
autonumber value to 1 higher than the current highest number. However
in A2000 the autonumber seed is only reset to 1 if there are no
records in the table and isn't reset to the highest number present in
the table.

Tony
Thanks, Tony. Yes, I use A97 and mo, I didn't know about the A2000
behaviour.

Alan
Jun 27 '08 #6
On May 22, 4:02*am, "Rick Brandt" <rickbran...@hotmail.comwrote:
Gogo wrote:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. *What happened to cause this, how would I fix it?

AutoNumber's only specification is that they be unique. *If you have
requirements beyond that then don't use an AutoNumber.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt * at * Hunter * dot * com
Using 2003 I've tried compact and repair, no success. You've
mentioned is autonumber to result in unique numbers? I don't
understand how to change ClientIDNumber field to get the correct
autonumbering to return. Help
Jun 27 '08 #7
On May 22, 4:02*am, "Rick Brandt" <rickbran...@hotmail.comwrote:
Gogo wrote:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. *What happened to cause this, how would I fix it?

AutoNumber's only specification is that they be unique. *If you have
requirements beyond that then don't use an AutoNumber.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt * at * Hunter * dot * com
Hey Rick: I just figured it out. to get AutoNumbering corrected. I
added a new field Client_ID_Number as AutoNumber, deleted the
incorrect field, saved structure and data with this new field. It
worked. Thanks,
Gogo
Jun 27 '08 #8
In article
<92**********************************@t12g2000prg. googlegroups.com>,
Gogo <ep****@cableone.netSat, 31 May 2008 17:55:49 writes
>On May 22, 4:02*am, "Rick Brandt" <rickbran...@hotmail.comwrote:
>Gogo wrote:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. *What happened to cause this, how would I fix it?

AutoNumber's only specification is that they be unique. *If you have
requirements beyond that then don't use an AutoNumber.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt * at * Hunter * dot * com

Using 2003 I've tried compact and repair, no success. You've
mentioned is autonumber to result in unique numbers? I don't
understand how to change ClientIDNumber field to get the correct
autonumbering to return. Help
Why does it bother you that numbers are missing?

Every time you start a new record (the pencil mark appears in the record
selector) and you then cancel by pressing Escape, you lose a number.

Rick is saying that the specification of an Autonumber is that it is
unique and there is no guarantee there will not be gaps.

In practice, if you specify an AN as type "Increment" it should increase
one by one, but it is very easy to lose numbers - but so what?
--
Les Desser
(The Reply-to address IS valid)
Jun 27 '08 #9
"Gogo" <ep****@cableone.netwrote
On May 22, 4:02 am, "Rick Brandt" <rickbran...@hotmail.comwrote:
Gogo wrote:
Database has record 59 showing, tabing to enter data returns
autonumber to 134. What happened to cause this, how would I fix it?
AutoNumber's only specification is that they be unique. If you have
requirements beyond that then don't use an AutoNumber.
Rick Brandt, Microsoft Access MVP
Hey Rick: I just figured it out. to get AutoNumbering corrected. I
added a new field Client_ID_Number as AutoNumber, deleted the
incorrect field, saved structure and data with this new field. It
worked. Thanks, Gogo
Hey, Gogo...

No, you did NOT figure it out. Knowledgeable people have explained to you,
over and again, that Autonumbers (even using "Increment") are not
_specified_ to be monotonically increasing. How many times do they have to
repeat it before you understand that you have recreated a series without the
gaps, but you have not "corrected the problem" BECAUSE THERE WAS NOT A
PROBLEM?

Autonumbers are for internal use as surrogate keys, and for joining related
tables. They are not for display to humans, because of what you
experienced. And, the probability is very high that you will experience it
again.

If you are using Autonumbers as surrogate keys, and you have more than a
'flat file' design, those numbers will appear in related tables as Foreign
Keys. So what's happened to the linkage between your main table where you
arbitrarily replaced the Field and any related tables that used the original
Field (where you saw the gap) as Foreign Key? You certainly did not say
that you'd done anything to "fix" those Foreign Keys.

They say, "What a tangled web we weave when first we practice to deceive,"
but the same applies to "What a tangled web we weave when we insist on
something being what it is NOT, and then resort to workarounds to try to
make it so."

Give it up, Gogo, baby. And, don't come back here whining when you find
another gap in your "carefully fixed Autonumber" -- which you certainly will
in the circumstances others have described, and in some others not so
well-defined and publicized.

Larry Linson
Microsoft Office Access MVO
Jun 27 '08 #10

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

Similar topics

33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
17
by: Alan Carter | last post by:
http://www.mvps.org/access/tencommandments.htm Thou shalt not use Autonumber if the field is meant to have meaning for thy users. Why? Alan
35
by: Traci | last post by:
If I have a table with an autonumber primary key and 100 records and I delete the last 50 records, the next record added would have a primary key of 101. Is there any way to have the primary key...
7
by: Fatz | last post by:
I have a table that is an autonumber field. This table appears as a subform in another form. I want the ID# to show in the subform...but I don't want the (Autonumber) to show at the bottom of the...
2
by: junkaccount | last post by:
Hello, I currently have a field named QuoteNumber in a table named Quotes. The field is set as autonumber and is used to assign sequential numbers as users enter information in the table through...
1
by: jason.teen | last post by:
Hi, Curerntly I have designed my table in MS Access with a column of "RuleID" and is set to (autonumber) tblRule: RuleID | Name ------------------------------- 1 ...
5
by: jnice814 | last post by:
I am trying to create an AutoNumber that will begin at a number that I specify. I have followed all instructions in MS Access Help, but it is still not working. I continue getting an error message...
6
by: Wayne | last post by:
I'm using the following SQL statement to find the next highest autonumber value in a table where "CDUGActID is the autonumber field in the "CDUGActuals" table: SELECT CDUGActuals.CDUGActID,...
2
by: Tyler | last post by:
I have a table where some of the entries have been deleted so the primary key field which is set as an autonumber field is not contiguous. When I try to ad a new record it starts numbering lower...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
1
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.