• Autonumber (Access 97)

    Author
    Topic
    #390947

    Why is it not a good idea to use Autonumber as a Primary Key?

    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #696456

      Huh?

      It is an excellent idea to use an AutoNumber field as primary key. One advantage is that it can’t be modified by the user, another that is is guaranteed to be unique (there were some issues with this in early versions of Access 2000, I think, but not in Access 97 as far as I know).

      One thing to keep in mind is that an AutoNumber field is essentially a meaningless number. Preferably, it should be hidden from the end user. For the developer, it is a convenient way to create a unique identifier for a record, and as such a natural candidate to be the primary key.

    Viewing 0 reply threads
    Reply To: Autonumber (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: