Results 1 to 4 of 4

Thread: mutiple primary keys in ms access

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Philippines
    Posts
    177

    Thumbs down mutiple primary keys in ms access

    how can i do it? thanks!

  2. #2
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: mutiple primary keys in ms access

    You can't.... There only can be one primary key in a table just like only one team can win the championship.
    you can however let acces index another field and not allow duplicates.
    so you can use this field as a unique identifier as well.
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: mutiple primary keys in ms access

    You can't have more than one primary key, but that key can be multiple fields. In the table designer, select all and only the fields you need and click the primary key icon.
    More than one primary key would be an oxymoron.
    Tengo mas preguntas que contestas

  4. #4
    Addicted Member
    Join Date
    Dec 2004
    Posts
    128

    Re: mutiple primary keys in ms access

    In the Design view of your table. Select which field you want to be primary key and select the primary key button. On your next field in the field properties it says Indexed. Change thet from No to yes with no dup's. That acts likea primary key becouse it does not allow duips in the field you selected.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width