Now I just need to test this out and see if it will help me to resolve lots of issues that I am having in one of my projects where database are failing to synchronize using Jet replication.
Fix:
By design, Microsoft Access always numbers AutoNumber fields beginning with the number 1. You cannot edit an AutoNumber field or change its starting value.
However, you can force Microsoft Access to number an AutoNumber field with a number you choose by following these general steps:
Check out http://support.microsoft.com/kb/94821/ for the full reference.
However, you can force Microsoft Access to number an AutoNumber field with a number you choose by following these general steps:
- Copy the design of the original table in which you want to set the starting AutoNumber value to a new table.
- Change the AutoNumber field in the new table to a Number field with a FieldSize property of Long Integer.
- Add a record to the new table, and set the Number field to a value that is one less than the starting number you want for your original table. For example, if you want the AutoNumber field to start at 100, type 99 in the Number field of the new table.
- Use an append query to add this new record to your original table. This action forces Microsoft Access to number any new AutoNumber fields with your number plus 1.
Check out http://support.microsoft.com/kb/94821/ for the full reference.