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

Autonumber problem Access 2002

I have a table where the key field is an autonumber. The highest number
was about 900, and there are several gaps in the sequence. This database was
recently converted from Access 97 to Access 2002/XP

At some point, it started using low numbers for new records. I compacted the
database, and it's still doing this.

Is this a problem? Will it start overwriting the high numbers when it gets
to them?

Thanks!

- Heather

--
- Heather

http://surgery.uchicago.edu/hblair/

Nov 13 '05 #1
3 1937
It's doing this -because- the database was compacted.
(Either deliberately or during conversion)

It won't overwite your existing entries - but nor should you really need to
be worried about what values they are.
They're really just for behind the scenes use.
--
---------------------------------------------------------------
Mr Leigh Purvis - Proprietor
Database Development
---------------------------------------------------------------
Email: Le***@DatabaseDevelopment.co.uk
Web: www.DatabaseDevelopment.co.uk
Mobile: 07713 166938
---------------------------------------------------------------
"heather e blair" <h4**@midway.uchicago.edu> wrote in message
news:Kk***************@news.uchicago.edu...
I have a table where the key field is an autonumber. The highest number
was about 900, and there are several gaps in the sequence. This database was recently converted from Access 97 to Access 2002/XP

At some point, it started using low numbers for new records. I compacted the database, and it's still doing this.

Is this a problem? Will it start overwriting the high numbers when it gets to them?

Thanks!

- Heather

--
- Heather

http://surgery.uchicago.edu/hblair/

Nov 13 '05 #2
Heather,
In principle, the point for me to using an autonumbered column is to have a
value around that the computer maintains which I can use to uniquely
identify a row in a table. It shouldn't matter how the column is numbered.
There are cases where control over the sequence of numbers is useful and in
those cases instead of relying on Access' built-in Autonumber I use a bit of
code that works in conjunction with a table in the database to generate my
own numbered sequences. If you have a need to control the way a sequence of
numbers is generated I'd write a routine to do that for you.

"heather e blair" <h4**@midway.uchicago.edu> wrote in message
news:Kk***************@news.uchicago.edu...
I have a table where the key field is an autonumber. The highest number
was about 900, and there are several gaps in the sequence. This database
was
recently converted from Access 97 to Access 2002/XP

At some point, it started using low numbers for new records. I compacted
the
database, and it's still doing this.

Is this a problem? Will it start overwriting the high numbers when it
gets
to them?

Thanks!

- Heather

--
- Heather

http://surgery.uchicago.edu/hblair/

Nov 13 '05 #3
heather e blair wrote:
I have a table where the key field is an autonumber. The highest number was about 900, and there are several gaps in the sequence. This database was recently converted from Access 97 to Access 2002/XP

At some point, it started using low numbers for new records. I compacted the database, and it's still doing this.

Is this a problem? Will it start overwriting the high numbers when it gets to them?

Thanks!

- Heather

--
- Heather

http://surgery.uchicago.edu/hblair/


Heather,

Why not go into table design, delete the autonumber key field, create
it again, put the key back on and save? That should fix it, renumber
the values and get rid of any gaps.

James A. Fortune

Nov 13 '05 #4

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...
4
by: Todd Matson | last post by:
I have a table with an autonumber primary key column. When I add a row to the table, Access is generating a number which is already in use. This makes my application blow up. Thankfully, the...
0
by: Andy_HR | last post by:
1. question when i have custom autonumber field... like Nz(DMax("ClanID", "tblClanovi")+1 how can i make it try again if someone else pressed the save button and that namber is already taken,..??...
26
by: jimfortune | last post by:
Sometimes I use Autonumber fields for ID fields. Furthermore, sometimes I use those same fields in orderdetail type tables. So it's important in that case that once an autonumber key value is...
4
by: Vladislav | last post by:
My customers have reported strange behaviour of the locally used modules for running the register on stroke patients, specifically, adding new patient to the register. When analising a sample, I...
4
by: dhcomcast | last post by:
We're starting to use Oracle for the back-end instead of a separate Access .mdb file for the data and everything as gone surprisingly well so far. We are learning Oracle as we go; Yikes! But we...
9
by: minjie | last post by:
I need to upgrade a MS Access database (Version 2002) with a script only, i.e., via SQL statement, not via Access GUI, and I'm having trouble defining an AutoNumber field. I got an exception error...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
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...
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?
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
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...
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,...

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.