Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

activex controls

Status
Not open for further replies.

SueHunting

Programmer
Aug 24, 2001
5
GB
Would appreciate some SIMPLE instructions on how to incorporate (and how to use) the activex control 'treeCtrl' in an Access database.
 
Add the tree control to your form
in the forms load event

private sub form_load()
'add a parent node to the list
tree1.nodes.add(,,"firstkey","parent1")
'add another parent node to the list
tree1.nodes.add(,,"secondkey","parent2")
'add a child
tree1.nodes.add("firstkey",tvwchild,"childkey1","child1")
tree1.nodes.add("secondkey",tvwchild,"childkey2","child2")
'now a grandchild
tree1.nodes.add("childkey1",tvwchild,"grndkey1","grandchild1")
end sub

there is a lot of help in the VB forums if you just do a search
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top