Results 1 to 3 of 3
  1. #1
    jamarogers is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Mendenhall, MS
    Posts
    19

    Question DB design to eliminate duplicates while avoiding comppound key fields

    Hi All,
    I'm getting back into Access after retiring and about 10 years of isolation (from Access). I have 2010 version and know that one should avoid duplicate entries and a way to do this is make those fields unique key fields. I have a Customers table and have bounced back between CusID (AutoNumber) and Compound Keys (CusFName and CusLName) as the key fields. The compound keys prevent duplicates but become very hard to work with later in code and expressions. The CusID is preferable from that standpoint, but can't prevent inadvertent entry of duplicate names.

    What to do???



    Thanks for any help advise and/or reference.
    Jake

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Try setting all three fields as compound key but only use the CusID to link tables in queries and form/subform arrangements.

    Alternative is to use VBA code to validate names.
    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
    jamarogers is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Mendenhall, MS
    Posts
    19
    Thank you June7...sometimes I can't see the forest for the trees. That sounds like a very good workable solution.

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

Similar Threads

  1. eliminate duplicates Messy Database
    By zachlunch in forum Access
    Replies: 1
    Last Post: 07-17-2013, 06:01 PM
  2. Allow ONLY duplicates in two fields
    By KWasley in forum Access
    Replies: 1
    Last Post: 04-17-2013, 09:04 AM
  3. Need design suggestions for indexed-no duplicates field
    By jax1000rr in forum Database Design
    Replies: 3
    Last Post: 01-29-2013, 06:42 AM
  4. Avoiding Duplicates - Concatenate Related?
    By WBosman in forum Access
    Replies: 10
    Last Post: 05-18-2011, 09:05 AM
  5. Avoiding duplicates in query
    By theracer06 in forum Queries
    Replies: 1
    Last Post: 08-24-2010, 12:49 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