Results 1 to 2 of 2
  1. #1
    lcsgeek is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    1

    Auto increment on existing number column


    Is there a way to set the default value of tblTable1.column1 to SELECT MAX(column1)+1 FROM tblTable1?I'm working on an existing table that wasn't setup for autonumber but needs to be going forward. Moreover this is an Access 2003 not sure if that matters. Any assistance would be appreciated. Thanks.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    copy your existing table, but do not copy the data when it prompts you, just the design.

    once saved, go into the design of the new table, put in an autonumber field.

    Create an append query that will append all the data from your 'old' table into your 'new' table in the order you want it.

    Then just run the append query then rename your 'old' table to something else (in case you need to go back to the data) and rename your 'new' table to the 'old' table name.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  2. increment number in first column
    By learning_graccess in forum Queries
    Replies: 7
    Last Post: 04-03-2012, 02:56 PM
  3. how to auto inset sequence number at column
    By newaccess in forum Access
    Replies: 1
    Last Post: 04-01-2011, 06:55 PM
  4. Replies: 5
    Last Post: 11-12-2010, 12:10 PM
  5. Replies: 2
    Last Post: 12-08-2009, 01:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums