Select the product you need help with
ACC2000: How to Use an Append Query to Set Initial Value of an AutoNumber FieldArticle ID: 209696 - View products that this article applies to. This article was previously published under Q209696 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb). On This PageSUMMARY
By using an append query, you can change the starting value of an
AutoNumber field in a table to a number other than 1.
MORE INFORMATION
Microsoft Access always numbers AutoNumber fields beginning with the number 1. If the table has data in it already, the starting value of the autonumber will be higher than the highest value already in the table. You cannot edit an AutoNumber field or change its starting value.
Overview: Changing Initial Value of an AutoNumber FieldIn order to force Microsoft Access to number an AutoNumber field with a number you choose, follow these general steps (a more detailed example is shown later in this article):
Example: Changing the Initial Value of an AutoNumber Field to 100The following example uses the sample database Northwind.mdb to set a new starting value for an AutoNumber field in the Employees table:CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
REFERENCESFor more information about AutoNumber fields, click Microsoft Access Help on the Help menu, type starting valueAutoNumber in the Office Assistant or the Answer Wizard, and then click Search to view the topic. PropertiesArticle ID: 209696 - Last Review: June 24, 2004 - Revision: 2.0
| Article Translations
|


Back to the top








