Not a table for each document.
No one would do that
How add various values in one field?
You do not EVER do that
Maybe the Access program is not suitable for this kind of project
I am sure I can do this in Access if I understand the requirement. If you look at the tread I posted the demos, do much more than that.
I think the user interface would be something similar to this example. See the video where you build a tree from available items
I am realizing that the Tree View works well for navigation, but would not be our preferred method for input/queries. Too many mouse clicks. That depends on your data. I can demo some structures that adding a node and moving a node would be way faster then any other method. Treeviews work well...
www.access-programmers.co.uk
I already gave you the proper table structure.
There are two challenges.
1. One is simply creating the table of Possible Tags. That would be organized like the following
tblTags
--TagID
--Level
--TagValue
--ParentID
--ParentValue (This is not needed, but will keep you from losing your mind looking at the data)
TagID | Level | TagValue | ParentID | ParentValue |
1 | 1 | Theology | | None |
2 | 1 | Literary | | None |
3 | 2 | Islamic | 1 | Theology |
4 | 2 | Christianity | 1 | Theology |
5 | 2 | Judaism | 1 | Theology |
6 | 3 | Shiite | 3 | Islamic |
7 | 3 | Sunni | 3 | Islamic |
8 | 2 | Grammatical | 2 | Literary |
9 | 2 | Linguistical | 2 | Literary |
This then gives you a hierrachial Table to assign tags to your Document_Tag table. But you kind of have to repeat by pulling from here.
If you limit this To no more than 3 or 4 levels this is Orders of Magnitude easier than having unlimited amount of levels.
So I ask you how many Max levels do you need? If you want unlimited then it will make the solution far more complicated. If you limit to 3-4 levels then you can load the above with standard comboboxes. If not you will need a second tree view to just load the potential tags and another tree view to assign tags to documents.
Again that table only gives you a way to choose the tags.
If you can create table tags with all your tags, you will then need a way to add to that table.
2. Problem 2. Then you have to assign tags to a document. The assignment table would be
tblDocuments_Tags
--DocumentTagID - PK
--DocumentID_FK
--TagID_FK
--ParentDocumentTagID_FK (this is not a fk to the tag table but to tblDocuments_tag)
This would be similar to the video.
1. Click on a document.
2. Click on a level 1 tag that you want and add it to the tree. (it is added to the tblDocuments_Tags)
3. If that level 1 tag has a level 2 tag then you can click on it and add it to the tree (it is added to the table with it parent in the table)
4. If that level 2 tag then you can add a level three tag.
If you want a demo, the more data the better.
Provide a table of documents
Provide a table of tags like I shown, with lots of tags.
If you can provide your table of documents and create a table of tags like I did. I probably can demo this.
However I am going to be honest with you. I can do all this with no problem. You will not be able to do it and likely unable to add, edit, modify or even understand it. This will require lots of VBA to make a useable GUI and probably lots of SQL to manipulate. I can demo it like the BOM link which is extremely complicated, but does something similar, but then will you be able to take the demo and tailor to your needs.