View Single Post
  #4  
Old April 3rd, 2010, 01:25 AM posted to microsoft.public.access.gettingstarted
fredg
external usenet poster
 
Posts: 4,386
Default values in the AutoNumber field are not sequential, why?

On Fri, 2 Apr 2010 16:49:01 -0700, jeffhill wrote:

While entering records into database, I entered the same record two times. I
deleted the record with the duplicate information and then added a new
record. Now the values in the AutoNumber field are not sequential. How can
this be?


That's the way AutoNumbers work. Once a number is assigned to a new
record, if you delete that record that number is not re-used. Even
without deleting a record, AutoNumbers are only required to be unique,
not sequential, and gaps can occur.
If, for some reason, you need to have a sequential number, you'll have
to create your own system. But again, once you delete a record, let's
say record #54 out of a sequence of 1 to 100, you will still have a
missing number.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail