Appending table autonumber problem

M

MTSmith

I am appending one table to another. The autonumber field in table1 ends at
989. When I append the second table's records, it jumps the number from 989
to 575272. Why does it do that and not just number the next appended record
990?
 
S

Stefan Hoffmann

hi,
I am appending one table to another. The autonumber field in table1 ends at
989. When I append the second table's records, it jumps the number from 989
to 575272. Why does it do that and not just number the next appended record
990?
Autonumber fields are not designed to be sequences with out gaps. They
only ensure that you'll get a unique number. When using a sequential
autonumber, the default, then it guarantees that you'll get a strictliy
increasing number (Caveat: sign flip at 2^32-1).


mfG
--> stefan <--
 
K

Keith Wilby

MTSmith said:
I am appending one table to another. The autonumber field in table1 ends
at
989. When I append the second table's records, it jumps the number from
989
to 575272. Why does it do that and not just number the next appended
record
990?

AutoNaumbers are for internal indexing purposes only and it's value should
be of no consequence to the user. If you want sequential numbering then
you'll have to do that yourself.

Keith.
 
D

Dorian

I don't know but autonumbers are guaranteed to be unique, beyond that is not
guaranteed. You cannot assume they will be sequential.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 
D

Daryl S

MT -

In your append query, are you including a field from the second table to go
into the 'autonumber' field in table1? If so, you should not have included
that field in your append query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top