Tree View Control 
Author Message
 Tree View Control

I'm trying to populate the tree view control with data from a table.

Never had any problems in the past but this one has stumped me.

The tree should display....

Root Node
        |
        |------------ Name1
        |------------ Name2
        |------------ Name3
                         |......... Test1
                         |......... Test2

The following code falls over on trying to add the Test nodes giving
the message "Run-Time Error 35610, Invalid Object"

Set rstDatabase = db.OpenRecordset("SELECT DISTINCT name FROM
tblDatabase")

While Not rst.EOF

        ' Add Name nodes        
        objTVVersion.Nodes.Add "RootNode", tvwChild,
rst.Fields("Name"),
rst.Fields("Name"), "bmpAccess"

        ' Add Test Nodes
        objTVVersion.Nodes.Add rst.Fields("Name"), tvwChild, "Test",
"test", "bmpTest"

rst.MoveNext

The Name field in question returns a string of the path of a file (eg:
D:\Access\Project\Versions\Northwind.mdb)  Could this string be too
long ?  

Any Ideas ?

Cheers



Fri, 17 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Tree View Control as file view

2. Populating a Tree View Control

3. Tree View Control Problem

4. Tree View Control

5. Changing arrows grpahics on a tree view control

6. Visual Liking in .Net using TREE VIEW control

7. Tree View control appearance change?

8. Multi-column Tree View Control?

9. Questions on using the new Tree View Control?

10. Data minding tree view control?

11. Tree View Control

12. Tree View Control loses selection

 

 
Powered by phpBB® Forum Software