I know how to create relationships in Access. But here's my delima.
Let's say I have the following ID's
1
2
3
4
5
6
They are linked by
1 - 2
2 - 3
3 - 4
4 - 5
5 - 6
I haven't figured out how to put this in the table yet either but what I want is when I pull up a list box and the bounded ID is 1, I would see 2 ,3 ,4, 5, 6. Same with ID 2, I would see 1, 3, 4, 5, 6.
First problem is getting them entered into the table which has a PrimaryKey, ID1, ID2.
One solution I have come up with to solving this part of is to use a B-tree design, by having 2 fields in a table, a Head and a Tail. Then write code to search through the table for the referenced values and if there isn't a match to find either the Head or the Tail and fill in the field that is currently empty.
Second problem, like the first one is trying to display this in a listbox in a form. I would think that this would invovle a lot of coding.
Any help is greatly appreciated. Thank you.
-Laughter works miracles.
Let's say I have the following ID's
1
2
3
4
5
6
They are linked by
1 - 2
2 - 3
3 - 4
4 - 5
5 - 6
I haven't figured out how to put this in the table yet either but what I want is when I pull up a list box and the bounded ID is 1, I would see 2 ,3 ,4, 5, 6. Same with ID 2, I would see 1, 3, 4, 5, 6.
First problem is getting them entered into the table which has a PrimaryKey, ID1, ID2.
One solution I have come up with to solving this part of is to use a B-tree design, by having 2 fields in a table, a Head and a Tail. Then write code to search through the table for the referenced values and if there isn't a match to find either the Head or the Tail and fill in the field that is currently empty.
Second problem, like the first one is trying to display this in a listbox in a form. I would think that this would invovle a lot of coding.
Any help is greatly appreciated. Thank you.
-Laughter works miracles.