Results 1 to 8 of 8
  1. #1
    jay055 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    4

    Relationship Error

    Hello, I'm trying to link two tables together in a relationship so it's easier to find data and provide data redundancy.



    I already managed to create a relationship with the Employee ID fields in the Users table and the Hardware Asset table.


    Of course now when I try to link the software table to either the hardware table or the user table I run into that annoying "No unique index found..." error and now I'm stuck. Can someone give me a hand?

    Thanks

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Based on what you show of your structure, you would make the join between the user table and the software table not between the hardware table and the software table.

    Now if the software is tied to the hardware, then your structure is wrong. The software in that case would be related to the hardware and not the user (at least not directly).

  3. #3
    jay055 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    4
    Thanks jzwp11,
    Do you have a suggestion on how I could link them all together? I.E. Find either software or hardware (or both) that is assigned to a user? If that is possible.

    Thanks

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by jay055 View Post
    Thanks jzwp11,
    Do you have a suggestion on how I could link them all together? I.E. Find either software or hardware (or both) that is assigned to a user? If that is possible.

    Thanks
    As mentioned, the way you have it now, it should be a link between tblUsers and tblSoftware (EmployeeID to EmployeeID just like between the users table and the hardware table)

  5. #5
    jay055 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    4
    Thanks, but now it comes comes up with an Insert Subdatasheet dialog box when I open the user table and forces me to choose only one link.. Am I only able to see one link off of the user table?

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You should be doing it with forms. You would base the main form on the user table and have 2 subforms--one for hardware and the other for software.

    You can put the subforms into a tab control for a nicer looking form/subform design.

  7. #7
    jay055 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    4
    I see,
    Thank You. My plan was to eventually use forms after I made sure I had the right structure, etc.

    Thanks for your help guys.

  8. #8
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome

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

Similar Threads

  1. Relationship
    By Navop in forum Database Design
    Replies: 1
    Last Post: 01-16-2012, 02:52 AM
  2. Replies: 5
    Last Post: 11-30-2011, 07:02 PM
  3. Relationship error
    By usman666 in forum Database Design
    Replies: 4
    Last Post: 10-26-2011, 05:34 PM
  4. many-to-one relationship
    By reverze in forum Access
    Replies: 7
    Last Post: 07-14-2010, 10:03 AM
  5. Replies: 0
    Last Post: 03-15-2010, 02:38 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