Resetting Autonumber fields

notoca

New Member
Joined
Sep 8, 2003
Messages
37
Hi

After testing tables with dummy data and deleting the dummy data how can the autonumber key fields be reset to starting from 1?

Thanks

Russell
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You can sometimes reset them by compacting the database. However Autonumbers are not designed to give you sequential numbers for things like invoices and should be used in the background for key fields and things where you need a unique ID.
Autonumbers will leave gaps in the number sequence if somebody cancels a record after they start filling it in.

HTH

Peter
 
Upvote 0
I think you would need to delete the field, save your table then stick it back in and resave (obviously you will also need to delete any relationships based on the field, too and then recreate them). As bat17 says, though, it doesn't really matter what the number is, as long as it's unique. If you do want a sequential number, take a look at Candace Tripp's website and download the Autonumber without Autonumber database-

http://www.candace-tripp.com/access_downloads.htm
 
Upvote 0

Forum statistics

Threads
1,221,569
Messages
6,160,557
Members
451,656
Latest member
SBulinski1975

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top