Autonumber

amfroehlich

Board Regular
Joined
Jul 14, 2004
Messages
192
I have a feild that is AutoNumbered. But, I want it to start at 300 how can I do this.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
One option is to create a table with EXACTLY the same fields as your existing. Let's call them DUMMY and KEEP for the moment.
OK, in DUMMY, create 299 records. (Just put junk into the first data entry field)
Build a query based on KEEP that has every field except the Autonumber field.
Turn it into an Append query, and append the records to DUMMY.
Now go to DUMMY and delete the first 299 records.
Delete KEEP and rename DUMMY. Note: You'll need to delete any relationships to KEEP before you delete it, then re-establish those relationships afterwards.

There are other, code-based solutions around, but this quick and dirty method does the job.

Denis
 
Upvote 0
One thing to bear in mind with autonumbers that it is easy to get missing numbers in the sequence, they are designed to give a unique reference to each record but they are not good for creating numbers that cannot have gaps in the sequences like receipts.

Access assigns the next number as soon as you start creating a record. If you cancel the record (or the PC/Network crashes before you can save it) then you will lose that number and have a gap.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,811
Messages
6,162,109
Members
451,743
Latest member
matt3388

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