Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Appending table autonumber problem

0 views
Skip to first unread message

MTSmith

unread,
Nov 4, 2009, 9:19:02 PM11/4/09
to
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?

Stefan Hoffmann

unread,
Nov 5, 2009, 3:50:51 AM11/5/09
to
hi,

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 <--

Keith Wilby

unread,
Nov 5, 2009, 4:18:21 AM11/5/09
to
"MTSmith" <MTS...@discussions.microsoft.com> wrote in message
news:B215F60E-35E4-4C7E...@microsoft.com...

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.

Dorian

unread,
Nov 5, 2009, 9:42:01 AM11/5/09
to
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".

Daryl S

unread,
Nov 5, 2009, 11:35:02 AM11/5/09
to
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.

--
Daryl S

MTSmith

unread,
Nov 6, 2009, 6:41:07 PM11/6/09
to
I may have done that. I'll check that out. Thanks for your input!
Terry
0 new messages