Page 1 of 1

Showing expanded tree on an Access 2010 Form

Posted: 01 Aug 2010, 11:49
by sam
Hi
I am using the control on an Access Form and it seems to be doing OK. I need it to use Russian translations and it shows the script fine.

My problem is that I am creating a hierarchy of terms from a database, adding child nodes to the parent node. The subnodes show up if I recurse through the nodes but not in the display. It may be that I have to set other variables to show that the node has childnodes? Or to show the + on the screen?

All I get in the control is the top level list (I had this with the Windows control before but set some variables and then it was OK).

Thanks in advance if you can help.

Sam

Re: Showing expanded tree on an Access 2010 Form

Posted: 02 Aug 2010, 20:54
by TiKu
I'm not sure what exactly you are trying to achieve. Currently it is like this?

Root Item 1
|- + Child Item 1
|- + Child Item 2
Root Item 2

And you want it like this?

+ Root Item 1
|-- + Child Item 1
|-- + Child Item 2
+ Root Item 2

Then you just need to change the LineStyle setting.
If the problem is something else, then try setting the HasExpando parameter of the TreeItems.Add method to heYes.

Re: Showing expanded tree on an Access 2010 Form

Posted: 10 Dec 2012, 11:04
by Alantar
I have the same Problem in Access 2007.

I tried using the HasExpando Parameter and the LineStyle but it didnt work. It seems the Control doesn't work on Access. I guess this is a problem with Access like with the DateTime Control.

Oliver

Re: Showing expanded tree on an Access 2010 Form

Posted: 10 Dec 2012, 23:17
by TiKu
Unfortunatly I don't have Access 2007 or 2010. Therefore I cannot analyze this problem.