Results 1 to 3 of 3
  1. #1
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62

    Question Trouble with Many-to-Many Relationship; Duplicate Values

    Hello,



    I'm having trouble setting up a many-to-many relationship. I want each serial number to have multiple operations. I set up a table to relate them as many-to-many and turned off primary keys to allow duplicate entries, but I'm still having some error regarding this relationship. The attached pictures should give a pretty clear idea of whats going on.

    Thanks
    Click image for larger version. 

Name:	Error.jpg 
Views:	8 
Size:	47.1 KB 
ID:	32716

    Click image for larger version. 

Name:	Relationships.JPG 
Views:	8 
Size:	26.8 KB 
ID:	32717

    Click image for larger version. 

Name:	SN_Ops.JPG 
Views:	8 
Size:	35.1 KB 
ID:	32718

    Click image for larger version. 

Name:	Tables.JPG 
Views:	7 
Size:	49.1 KB 
ID:	32719

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    So why is the link between the two serial number fields showing 1-to-1?

    Make sure there isn't still an Index set in the junction table on the serialNumber field.


    Advise not to give multiple fields exact same 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
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62

    Thumbs up

    Quote Originally Posted by June7 View Post
    So why is the link between the two serial number fields showing 1-to-1?

    Make sure there isn't still an Index set in the junction table on the serialNumber field.


    Advise not to give multiple fields exact same names.
    Turns out this was a little "artifact" from before I removed the primary keys on my junction and allowed duplicates. The old relationship was one-to-one, I had to delete and rebuild to make it one-to-many. Works now. Thanks.

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

Similar Threads

  1. Trouble with duplicate button
    By lovelykid23 in forum Access
    Replies: 4
    Last Post: 03-09-2017, 01:35 PM
  2. Replies: 5
    Last Post: 01-29-2013, 03:38 PM
  3. Creating a Relationship? (Having trouble)
    By lpmndcte in forum Access
    Replies: 3
    Last Post: 05-17-2012, 06:53 AM
  4. Replies: 4
    Last Post: 04-19-2012, 11:01 AM
  5. Replies: 7
    Last Post: 10-03-2011, 02:46 PM

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