A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Appending table autonumber problem



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2009, 02:19 AM posted to microsoft.public.access.tablesdbdesign
MTSmith
external usenet poster
 
Posts: 11
Default Appending table autonumber problem

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?
  #2  
Old November 5th, 2009, 08:50 AM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Appending table autonumber problem

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 --
  #3  
Old November 5th, 2009, 09:18 AM posted to microsoft.public.access.tablesdbdesign
Keith Wilby
external usenet poster
 
Posts: 812
Default Appending table autonumber problem

"MTSmith" wrote in message
...
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.

  #4  
Old November 5th, 2009, 02:42 PM posted to microsoft.public.access.tablesdbdesign
Dorian
external usenet poster
 
Posts: 542
Default Appending table autonumber problem

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?

  #5  
Old November 5th, 2009, 04:35 PM posted to microsoft.public.access.tablesdbdesign
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Appending table autonumber problem

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?

  #6  
Old November 6th, 2009, 11:41 PM posted to microsoft.public.access.tablesdbdesign
MTSmith
external usenet poster
 
Posts: 11
Default Appending table autonumber problem

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?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.