Help with a linking table

YuvalH

New member
Local time
Today, 22:21
Joined
Jan 21, 2022
Messages
13
Hi, I'm in a process of creating a file tagging system. I'm trying to create a table that will display for every file what tags are assigned to it. I tried several ways with relationships and it doesn't seem to work.
EXP:
1645893629249.png

for file num 1 I have tags 1,4,5.

1645893690328.png

I made "Tags" multiselect with the wizard.

Thx for help
 
You need a junction Table for a many to many. A tag can be related to many files. A file can have many tags.

Code:
TblTags
  FileID_FK
  TagID_FK
 
If you use a multi value field (these are bullcrap) then I do not know if you can actually build a relationship. A MVF creates the junction table as a hidden system table.
 
As MajP said, MVF's are nothing but trouble. Multi-select list boxes are NOT bound so unless you want to write code to manage the junction table that way, the best physical representation will be a subform. You can do that without any code at all. The visual is not as great as the one with the MVF but you can come close. The difference is that the subform will show only selected items whereas the MVF and multi-select list box show ALL items with checkmarks for those selected.
 

Users who are viewing this thread

Back
Top Bottom