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