472,973 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 5612
"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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.