Results 1 to 4 of 4
  1. #1
    bell is offline Advanced Beginner
    Windows 7 64bit Access 2002
    Join Date
    Feb 2015
    Posts
    37

    Trying to create a One-to-Many relationship but it will only make a One-to-One

    Hi All,



    I have three tables: Wirelist Cover, Revision History, Wirelist


    Wirelist Cover has one key: Document Number (text)

    Revision History has two keys: Document Number (text) and Rev (text)

    Wirelist has two keys: Document Number (text) and Wire (number)

    I was able to make the Wirelist Cover to Wirelist relationship One-to-Many (since there can be multiple wires per Document Number)

    I am NOT able to make the Wirelist Cover to Revision History relationship One-to-Many....it keeps coming up as One-to-One

    I need the relationship to be One-to-Many since there can be multiple revision (they are alphabetical revision, starting with -, A B C...etc) per Document Number

    I dont know why it wont show as a One-to-Many. It sounds like I only declared one key in the Revision History table, but I looked and there are definitely two keys listed.

    Is there a problem because Rev is defined as text??

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why are you using compound keys?

    Can't link RevisionHistory and Wirelist on these compound keys.

    Suggest you use autonumber as PK and save as foreign key. Set the data fields as compound index to prevent duplicate.
    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
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Can you describe to readers, who do not have any knowledge of your business nor your current opportunity, what a typical day consists of in your environment?
    Wirelist, WirelistCover and Document seem to be jargon for your business. Until readers have some context, there will only be guesses to solution.

    Good luck.

  4. #4
    bell is offline Advanced Beginner
    Windows 7 64bit Access 2002
    Join Date
    Feb 2015
    Posts
    37
    Quote Originally Posted by June7 View Post
    Why are you using compound keys?

    Can't link RevisionHistory and Wirelist on these compound keys.

    Suggest you use autonumber as PK and save as foreign key. Set the data fields as compound index to prevent duplicate.

    I'm still fairly new to access, so I didn't even know what a compound key was.

    After doing some more research, I understand my problem. I ended up doing what you said, added auto number keys to my tables and used indexes to prevent the duplicates.
    All works now.

    Thanks

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

Similar Threads

  1. Does this table relationship make sense?
    By MatthewGrace in forum Database Design
    Replies: 9
    Last Post: 10-05-2014, 03:59 PM
  2. Can I make an Outer Join a one way relationship?
    By johnjmcnaughton in forum Programming
    Replies: 19
    Last Post: 05-01-2013, 09:48 AM
  3. Replies: 3
    Last Post: 10-29-2012, 11:43 AM
  4. help me create relationship
    By Candy in forum Access
    Replies: 7
    Last Post: 05-29-2010, 07:43 PM
  5. Replies: 1
    Last Post: 10-28-2008, 08:38 AM

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