add identity column to Access Database

Posted on 2011-10-05
Last Modified: 2012-05-12
I have an Access 2007 database that I am trying to work with, and the previous creator made some design questions that don't make sense. there are about 15 different tables, and none of them have identity columns. The primary key was designated using the nvarchar data type.

I understand how to add a new column, but need help with going through each item in the table and assigning an ID.

Question by:brendanlefavre
    LVL 74

    Accepted Solution

    In Access an Identity Columns know as a "AutoNumber" field.

    Open the table in design view
    Insert a new column (Field)
    Name the Field
    Select "Autonumber" as the data type

    ...Is this what you wanted?

    Author Closing Comment

    setting autonumber was the piece that I was missing.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
    Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now