Results 1 to 3 of 3
  1. #1
    quicksun is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    2

    Error creating new primary key

    Hi,
    I want to delete the primary key that is created when the database was first made and create another primary key from another column. I have followed the instructions in the help file and it looked to me that I had created the primary key that I wanted, but when I tried saving the file I got the following message: "... created duplicated values in the index, primary key, or relationship." I am using Access 2007. I tried looking for the error but can't find it. Does anyone have an idea where I might find where the error is?
    Thanks,
    quicksun

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    There must be a duplicate value in the other field and the new pk field is set for No Duplicates.

    Do a query that groups on the other field and counts the records. This should reveal the duplicated values.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    quicksun is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    2
    Quote Originally Posted by June7 View Post
    There must be a duplicate value in the other field and the new pk field is set for No Duplicates.

    Do a query that groups on the other field and counts the records. This should reveal the duplicated values.

    Thanks for the information. I'll do that search.
    quicksun

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

Similar Threads

  1. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  2. Creating Buttons on a form keeps returning a visual basic error
    By Robin Banks in forum Database Design
    Replies: 1
    Last Post: 02-28-2012, 07:48 AM
  3. Primary key
    By Sara_IT in forum Access
    Replies: 2
    Last Post: 11-25-2011, 02:46 PM
  4. Primary Key
    By DukeBlue in forum Access
    Replies: 18
    Last Post: 09-23-2011, 05:23 PM
  5. Replies: 1
    Last Post: 06-15-2011, 03:29 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