PC Review


Reply
Thread Tools Rate Thread

Appending table autonumber problem

 
 
MTSmith
Guest
Posts: n/a
 
      5th Nov 2009
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?
 
Reply With Quote
 
 
 
 
Stefan Hoffmann
Guest
Posts: n/a
 
      5th Nov 2009
hi,

MTSmith wrote:
> 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 <--
 
Reply With Quote
 
Keith Wilby
Guest
Posts: n/a
 
      5th Nov 2009
"MTSmith" <(E-Mail Removed)> wrote in message
news:B215F60E-35E4-4C7E-AC18-(E-Mail Removed)...
>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.

 
Reply With Quote
 
Dorian
Guest
Posts: n/a
 
      5th Nov 2009
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".


"MTSmith" wrote:

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

 
Reply With Quote
 
Daryl S
Guest
Posts: n/a
 
      5th Nov 2009
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" wrote:

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

 
Reply With Quote
 
MTSmith
Guest
Posts: n/a
 
      6th Nov 2009
I may have done that. I'll check that out. Thanks for your input!
Terry

"Daryl S" wrote:

> 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" wrote:
>
> > 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?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Appending a table with an autonumber field jflash Microsoft Access Queries 1 7th Apr 2008 01:24 AM
Appending to Autonumber Field tcb Microsoft Access 3 22nd Feb 2008 06:55 PM
INCREMENTAL NBR VS. AUTONUMBER WHEN APPENDING =?Utf-8?B?VGFuaw==?= Microsoft Access Queries 2 30th Sep 2006 04:11 AM
Problem Appending Data To table =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 22nd Aug 2006 01:44 PM
Appending Records to Table with an AutoNumber ID field =?Utf-8?B?Sm9uYXRoYW4gT3o=?= Microsoft Access External Data 2 29th Nov 2005 07:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 PM.