Hi M_SOLAIMAN,
Have a look at the following example
http://www.fabalou.com/Acc
Good Luck!
Gary
Main Topics
Browse All TopicsHi:
I need to build a Hierarchy family tree program(like windows explorer), but (top down expand).
I have the data In a table. This table contains
"the name",
"the unique name code",
"the name level",
" the related name code". (always relate to the father of this person(like foreign key but in the same table))
I need a function can read this table and draw the tree for me on a form, so each person will be represented by a box (his name will be inside this box), and there are a arrow join this person with his father (upper level), and another arrow join this person with his kids(down level), and by sides arrows to join the person with his brothers how's at the same level.
Take an example
(First level) The very first father is "A"
(Second level) He has a 5 kids, "B", "C", "D", "E", "F"
(Third level) "B" has 2 kids "B1" and "B2",
"C" has 3 kids "C1" , "C2" and "C3",
"D" has 4 kids, "D1" , "D2", "D3" and "D4",
"E" has 1 kid, "E1",
"F" has 0 kids.
(Forth level) "B1" has 1 kid, B1_1
"B2" has no kids.
"C1" has 3 kids "C1_1" , "C1_2" and "C1_3".
"C2" &etc
"C3" &etc
"D1" &etc
"D2" &etc
"D3" &etc
"D4" &etc
"E1" &etc
(Fifth level) "B1_1" has 1 kid, B1_1_1
And so on.
Can I do such thing in MS Access?
Please help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi M_SOLAIMAN,
Have a look at the following example
http://www.fabalou.com/Acc
Good Luck!
Gary
I use standard code for populating TreeViews, this code has an option for self joins. The code can bee found in http://www.experts-exchang
Cheers, Andrew
Business Accounts
Answer for Membership
by: kelvinsparksPosted on 2009-03-25 at 00:22:36ID: 23976662
The Access tree view tool (an addin I think) may help. I seen it in use once, and had to fix one. Not the easiest of things to work with, but will do it, giving the little plus sign to expand a layer.
I'd suggest searching EE for treeview
Kelvin