Is there a beter solution for insert data into MSComctlLib.TreeCtrl.2

Dear members,

I use the function Set nNode = oTV.Nodes.Add(CStr(rst("XRELATIVE")), tvwChild, CStr(rst("XKEY")), rst("XTEXT")) for adding nodes to my treeview.

But I have a lage number of rows and prepaire the keys in a stored procedure (create a table with the records I need)

Is there a better solution for adding my nodes faster than this?
Who is Participating?
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
AFAIK, there is NO other method to add Nodes. The treeview you're using is a pretty simple control, and has no extended features. There are treeviews out there to which you could pass a Recordset or array but this isn't one of them.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.