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

reseting autonumber in MS Access 2003

Hi all,

I have found solution for previous Access versions (i.e. compacting
database) but it doesn't work with the 2003 version. Can someone
point me to a website or give me some hints. Thanks!!!!!!

KL

Apr 25 '07 #1
4 5364
Compacting should work if all data has been removed from the table.
If it doesn't you may need to update your JET 4:
http://support.microsoft.com/kb/239114

You can reset the Seed of the AutoNumber programmatically:
http://allenbrowne.com/func-ADOX.html#GetSeedADOX

--
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.

<la*****@gmail.comwrote in message
news:11**********************@r3g2000prh.googlegro ups.com...
Hi all,

I have found solution for previous Access versions (i.e. compacting
database) but it doesn't work with the 2003 version. Can someone
point me to a website or give me some hints. Thanks!!!!!!

KL
Apr 25 '07 #2
On Apr 25, 10:26 am, lamk...@gmail.com wrote:
Hi all,

I have found solution for previous Access versions (i.e. compacting
database) but it doesn't work with the 2003 version. Can someone
point me to a website or give me some hints. Thanks!!!!!!

KL
1. Delete the autonumber column
2. Compact the database.
3. Create a new autonumber column.

HTH
Bubbles

Apr 26 '07 #3
"bubbles" <bu*********@hotmail.comwrote
1. Delete the autonumber column
2. Compact the database.
3. Create a new autonumber column.
That, unfortunately, works only if you are emptying the Table of Records, or
if you haven't used the autonumber column in relationships. At one time,
Compact and Repair, would reset the AutoNumber sequence to the next after
the highest-used number. Later versions would only reset to 0, if there
were no records in the Table.

But, if you eliminate the column, you "orphan" any Records in Related
Tables.

Larry Linson
Microsoft Access MVP
Apr 26 '07 #4
On Apr 27, 5:44 am, "Larry Linson" <boun...@localhost.notwrote:
"bubbles" <bubbles....@hotmail.comwrote
1. Delete the autonumber column
2. Compact the database.
3. Create a new autonumber column.

That, unfortunately, works only if you are emptying the Table of Records, or
if you haven't used the autonumber column in relationships. At one time,
Compact and Repair, would reset the AutoNumber sequence to the next after
the highest-used number. Later versions would only reset to 0, if there
were no records in the Table.

But, if you eliminate the column, you "orphan" any Records in Related
Tables.

Larry Linson
Microsoft Access MVP

You're right.
I had assumed that if he had wanted to reset the autonumber column,
then the table
would not be related to other tables.

Bubbles

Apr 27 '07 #5

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

Similar topics

2
by: Charles Robinson III | last post by:
The AutoNumber sequence in my database is currently formatted as '000000'. When a new record is created, the AutoNumber would go from 000001, 000002, 000003 and so on. I want to track via...
1
by: BT Openworld | last post by:
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...
1
by: waschbaer2 | last post by:
Hi! What's the proper Visual Basic for Applications (VBA) code for reseting the menu bar and the tool bar in Access. Thanks in advance, Markus
4
by: Ed_P | last post by:
Hello I currently have a Access 2003 database, I am able to add a record to it, and the CustomerID field (which is auto generated by the Database) is correctly filled in by the Database. I am...
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...
2
by: Hiyella2 | last post by:
Hello, I have a problem with a table in my MS Access 2003 table. The primary key of this table is an autonumber field set to a Long Integer, Yes - no duplicates. The autonumber made it to 10252....
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...
2
mkremkow
by: mkremkow | last post by:
Access 2003 on XP Someone here at work deleted a record (&$%^&*&!!!) and screwed up the Autonumber "Job ID" field . I need to reset the Autonumber field back to it's original numbers and still...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
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
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.