Hi. I have an entity table that lists entity type, entity name, etc. I have a relationship table that uses the ID from the entity table and the ID from the company table. Problem is an entity in the entity table can have a relationship with another entity in that table which is not in the company table. The reason that happens is because that entity is not a company but a governing structure of sorts. Any thoughts on how to make this work for running views and seeing names? Thanks.
One organization can have many relationships
Collapse
X
-
it's called a join table.
it allows a many to many relationship to be established.
You should take a look at the follwing article.
Defining Table RelationshipsThis article describes how to define relationships in a Microsoft Access database. It includes the following topics:
•What Are Table Relationships
•Types of Table Relationships
◦One-To-Many Relationships
◦Many-To-Many Relationships
◦One-To-One Relationships
•How to Define Relationships Between Tables
◦How to Define a One-To-Many or One-To-One Relationships
◦How to Define a Many-To-Many Relationships
•Referential Integrity
•Cascading Updates and Deletes
•Join Types -
Maybe I wasn't clear. An entity in the Entity Table may have a relationship with another entity in the Entity Table and may also have a relationship with a company in the company table. Hope that clarifies. Thanks and looking forward to your response.Comment
-
There is a huge difference between the two. We capture very detailed info about the company. For the entity, we only capture name, entity type, main contact. I need to be able to show all relationships under the highest level of entity type and am just stuck on how to do that with the entity to entity issue. Any other thoughts? Thanks in advance.Comment
-
I have a relationship table already. My problem is displaying the data. Let's say I have an entity named California and its ID is 4. I also have an entity named Neveda and its ID is 5. If I relate the two entities in the relationship table, I can see California is related to ID5. I'd like it to be California is related to Neveda. If I relate California to a company in the company table, I see California and CompanyName. Hope that is clear.Comment
-
Just re-read your message and as usual I see something that I didn't on the first read. Let me try that and see if it does the trick. Might not be able to do that till tomorrow; new deadline just came in. Thanks.Comment
-
Tried your suggestion (heck with the new deadline) and when I create a view, I only see one name from the entity table.Comment
-
It was how I set up the related entity ID. Thanks as usual for your help. Enjoy the rest of the day.Comment
Comment