Re numbering numeric primary key due to deletion of records

Zbish

Board Regular
Joined
Apr 12, 2003
Messages
100
Hi
Can anyone help
Have a primary key - autonumber
Wish to renumber due to deletion of records
Firstly is this possible
Second if so how?
Any halp would be greatly appreciated
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Re: Re numbering numeric primary key due to deletion of reco

Hi zbish,
Much depends on your data structures and relationships to other tables. If you will not be violating referential integrity etc, then it is straightforward.

If you take a look in Help (on the menu bar) select index, and enter 'Autonumber', you should be able to find the step by step process you need to guide you ('Change the starting value of an incrementing Autonumber field)

HTH
 
Upvote 0
Re: Re numbering numeric primary key due to deletion of reco

Paul
Appreciate the help
Many thanks
 
Upvote 0

Forum statistics

Threads
1,221,821
Messages
6,162,157
Members
451,750
Latest member
pnkundalia

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