I've read a few thigns online and looked over a few examples but I have to say I'm still vastly confused about relationships.
I'm creating a personal project manager of a sorts to keep track of my projects. (Work, School and Misc).
So I want to relate the table for classes to the form for assignments from that table.
tblClasses
- PKCLASSID (autonum)
- Class Name (txt)
- Class Link (link)
tblAssignments
- PKASSIGNMENTSID (autonum)
- Assignment Type (txt)
- Class Name (txt)
- Class Link (link)
What I was hoping to do was link the 2 fields in the classes table to the 2 fields in the assignment table. So that when I use the form to add assignments I can grab a dropdown box to select the class this particular assignment is due for and it will automatically pull from the class name field.
I got that to work... what I haven't figured out is how to make it so that when the class has been chosen, the Class Link field populates with the link that is associated with that particular class.
---
I assumed it didn't work because none of my tables are linked, when I tried to link the tables, it says no unique index found for reference field of primary table.
I double checked and I have it setup for indexed no duplicates but I still couldn't get it to work. After reviewing other topics about relationships I notice they are making Foriegn Keys from primary keys... but that doesn't really suit me. Because I want the name and link to populate.
Suggestions?
I'm creating a personal project manager of a sorts to keep track of my projects. (Work, School and Misc).
So I want to relate the table for classes to the form for assignments from that table.
tblClasses
- PKCLASSID (autonum)
- Class Name (txt)
- Class Link (link)
tblAssignments
- PKASSIGNMENTSID (autonum)
- Assignment Type (txt)
- Class Name (txt)
- Class Link (link)
What I was hoping to do was link the 2 fields in the classes table to the 2 fields in the assignment table. So that when I use the form to add assignments I can grab a dropdown box to select the class this particular assignment is due for and it will automatically pull from the class name field.
I got that to work... what I haven't figured out is how to make it so that when the class has been chosen, the Class Link field populates with the link that is associated with that particular class.
---
I assumed it didn't work because none of my tables are linked, when I tried to link the tables, it says no unique index found for reference field of primary table.
I double checked and I have it setup for indexed no duplicates but I still couldn't get it to work. After reviewing other topics about relationships I notice they are making Foriegn Keys from primary keys... but that doesn't really suit me. Because I want the name and link to populate.
Suggestions?