shaunhubbs
Technical User
Hi all,
I am trying to create a simple form in Access to display a tree full of Sets with Items in them. The problem I am running into is, I believe, the syntax/parameters used by the TreeView ActiveX control.
Here is some simple code that I have written in the Form_Load even; any ideas why something this simple isn't working?
axTreeView.Nodes.Add , , "Set", "Set 1234"
axTreeView.Nodes.Add "Set", tvwChild, "Item", "Screw"
Does the second line, first paramater not refer to where the child should be placed under? I have seen lots of code examples for treeview, but cannot seem to find a good explanation on how to associate children under their parents and what the parameters are. Do you think I have something set up wrong within Access maybe?
Any help is greatly appreciated. Thanks.
- Shaun
I am trying to create a simple form in Access to display a tree full of Sets with Items in them. The problem I am running into is, I believe, the syntax/parameters used by the TreeView ActiveX control.
Here is some simple code that I have written in the Form_Load even; any ideas why something this simple isn't working?
axTreeView.Nodes.Add , , "Set", "Set 1234"
axTreeView.Nodes.Add "Set", tvwChild, "Item", "Screw"
Does the second line, first paramater not refer to where the child should be placed under? I have seen lots of code examples for treeview, but cannot seem to find a good explanation on how to associate children under their parents and what the parameters are. Do you think I have something set up wrong within Access maybe?
Any help is greatly appreciated. Thanks.
- Shaun