Trees in Access
Nov. 1st, 2008 02:14 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Does anyone know how to implement a tree structure in Access?
As I mentioned, I want to organize my keywords into a tree, so that (e.g.) the keyword "Location" has children such as "Europe", "Asia", etc., and "Europe" in turn has children "Ireland", "Great Britain", and so on. It seems that the obvious way to do this is to have each Keyword record have a "Parent" field, containing the ID of the parent keyword.
So far, so good. I want to construct a form which will show a keyword and a list of its children, and which will allow me to add more children to that list. Thus far, I haven't been able to get the latter to work. Any ideas? ("Use a different database program" will be considered only as a last resort....)
As I mentioned, I want to organize my keywords into a tree, so that (e.g.) the keyword "Location" has children such as "Europe", "Asia", etc., and "Europe" in turn has children "Ireland", "Great Britain", and so on. It seems that the obvious way to do this is to have each Keyword record have a "Parent" field, containing the ID of the parent keyword.
So far, so good. I want to construct a form which will show a keyword and a list of its children, and which will allow me to add more children to that list. Thus far, I haven't been able to get the latter to work. Any ideas? ("Use a different database program" will be considered only as a last resort....)
no subject
Date: 2008-11-06 01:10 pm (UTC)Try this.
http://www.vb123.com/toolshed/00_accvb/treeview.htm
I didn't read all of it, but it sounds like what you want to do.
Thanks - Peter
no subject
Date: 2008-11-06 02:48 pm (UTC)