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  

Create an Autonumber column in a table



 
 
Thread Tools Display Modes
  #1  
Old October 19th, 2006, 04:38 PM posted to microsoft.public.access.tablesdbdesign
Astello
external usenet poster
 
Posts: 27
Default Create an Autonumber column in a table

How do I add an autonumber column to an already existing table?

  #2  
Old October 19th, 2006, 06:27 PM posted to microsoft.public.access.tablesdbdesign
John Vinson
external usenet poster
 
Posts: 4,033
Default Create an Autonumber column in a table

On 19 Oct 2006 08:38:41 -0700, "Astello" wrote:

How do I add an autonumber column to an already existing table?


If you want to control the sequential order of the autonumber values,
the best solution is to copy your table, *design mode only*, to a new
table; add an autonumber field to the (empty) table, in table design
view; run an Append query to append all the data; drop all
relationships to the old table and build new relationships to the new
one.

John W. Vinson[MVP]
  #3  
Old October 31st, 2006, 08:03 PM posted to microsoft.public.access.tablesdbdesign
Astello
external usenet poster
 
Posts: 27
Default Create an Autonumber column in a table

I messed with this table for so long that I'm not even sure what to
tell you I came up with, but I know I had too much data. There were
almost 1 million lines combined, so I put them into notepad (as scrappy
as that sounds) and imported the whole thing at once, letting Access
add the primary key upon import.

John Vinson wrote:
On 19 Oct 2006 08:38:41 -0700, "Astello" wrote:

How do I add an autonumber column to an already existing table?


If you want to control the sequential order of the autonumber values,
the best solution is to copy your table, *design mode only*, to a new
table; add an autonumber field to the (empty) table, in table design
view; run an Append query to append all the data; drop all
relationships to the old table and build new relationships to the new
one.

John W. Vinson[MVP]


 




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 06:43 PM.


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