Results 1 to 6 of 6
  1. #1
    Del Coro is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    3

    Subforms and unwanted duplicate records

    Apologies if this has been asked before, I didn't see anything relevant.

    The situation:



    I have two tables, one listing personnel, and another listing keys they are issued. I have a form for data entry of personnel information, and a subform for entering what keys they are issued (info that would normally be entered at the same time).

    The problem arises because multiple people can have copies of the same key (which for the user's purposes essentially ARE the same key). When inputting one person's info it creates the new key in the key table, but when another person is entered with the same key number, it creates another new key, when obviously I just want it to relate the new record to the previous key.

    Any suggestions are appreciated.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You have more that one copy of the key so why are you having a problem with more that one record referring to a key?

  3. #3
    Del Coro is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    3
    Quote Originally Posted by RuralGuy View Post
    You have more that one copy of the key so why are you having a problem with more that one record referring to a key?
    Because

    A) The users want the keys tracked as one single record, and

    B) This problem will be replicated later on when multiple records of other types will need to match ONE record in another table, and not copies of the same record.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would think the "users" would want to know who has keys to a room.

  5. #5
    Del Coro is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    3
    Quote Originally Posted by RuralGuy View Post
    I would think the "users" would want to know who has keys to a room.
    And later on, when they want to know who is IN what room, and instead of one room with four occupants, the DB spits out four copies of the same room with one occupant each, what then?

    But hey, thanks for not being remotely helpful.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're right, that will certainy be a tough problem to resolve and way beyond my talents. Good luck with that.

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

Similar Threads

  1. protecting records from unwanted edits
    By Hunt2871 in forum Security
    Replies: 2
    Last Post: 08-01-2010, 10:49 PM
  2. Duplicate Records
    By softspoken in forum Queries
    Replies: 3
    Last Post: 06-21-2010, 03:33 PM
  3. Assigning values to duplicate records
    By matteu1 in forum Queries
    Replies: 3
    Last Post: 02-17-2010, 10:35 PM
  4. Replies: 1
    Last Post: 11-10-2009, 03:12 PM
  5. Delete duplicate records
    By Zukster in forum Queries
    Replies: 1
    Last Post: 08-26-2009, 03:14 AM

Tags for this Thread

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