> Thanks Leanne,
> Unfortunately Autonumbers ARE sequential (unless specified random or sync).
Sorry, this is incorrect. Autonumbers will ALWAYS have gaps. They may
START sequentially when you first create them. But if you were to delete
any record (say, #458), then the numbers would no longer be sequential.
Access will not renumber the remaining records from 459 onward to
maintain the sequence (nor should it, as it would then have to
perpetuate the change in all related records). The same goes if more
than one record is deleted. And should you delete a large chunk of
records from a table and/or append new records without first doing a
Compact/Repair, Access will not necessarily begin the next new record
with the next number in sequence. Again, Autonumbers are NOT meant to be
sequential. Access doesn't care if one record is number 28, and the next
one is -72.5643210E3 (which can happen if you replicate!)...they're
still uniquely identified, and that's all that matters to Access.
> Once one has populated a (long) field it is not possible to change it to
> autonum.
Whoops! You're correct. You can change an autonumber to Long Int, but
not the other way around.
> I am unable to delete the 'weird' fields - error = "Key not found"
Huh? Just open the table in Datasheet View, highlight the rows you want
to delete, then click the Delete toolbar button (red "X"). Again, you
MUST Compact/Repair before attempting to re-append the records.
> The update method does not work/help - there are two numbering sequences in
> effect: one from 838 upwards and one from 258978675.
You lost me here.
> Even if it was permissable, I cannot copy the existing data to a new table
> and then set the column to autonum because there are missing numbers
See above.
LeAnne
>>Hi NJS,
>>
[quoted text clipped - 24 lines]
>>>append query and it didn't work)
>>>thanks very much - in advance.
NJS - 13 Jan 2005 22:29 GMT
Leanne,
By default Autonums ARE issued sequentially('Increment'), unless you specify
'random' or are synchronsing.
I know that you can delete records, leaving gaps. Access WILL begin the next
new record with the next (unused) number in sequence (unless you have deleted
some).
My problems are much more complex than where we are dwelling. I need to know
how to recreate the table, with the next autonum immediately after 837 (It
now issues 258978675 because it is inheriting the high sequence). The append
method does not work in this case.
> > Thanks Leanne,
> > Unfortunately Autonumbers ARE sequential (unless specified random or sync).
[quoted text clipped - 65 lines]
> >>>append query and it didn't work)
> >>>thanks very much - in advance.