Discussion Locked

Using (VB) TreeView inside Access 2000

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need added VB functionality within my Access 2000 application and know it can be done. I prey someone out there knows how to do this and will share his/her knowledge.

Either TreeView or ListView (probably TreeView) is what I am after. TreeView displays a collapsing and expanding hierarchy list (like Explore) based on the little + and ? signs in a box(logo) to the right of each hierarchy level label. That is the functionality I need and am trying to move into Access. It is a pure VB object (CTreeCtrl) and I?m trying to find how to use it inside my Access 2000 application. Give me a code sample with an explanation of what I need to do (inside Access) to import the function, ActiveX, Class, or whatever CTreeCtrl is. It acts like a turbo-charged List Box one can use to zero in on huge data warehouses to locate inventory (or whatever) items. What DLL?s does TreeView require for operation ? I?ll need them to accompany my compiled executable application library.

I will try suggestions amd approve the 1st one that works. I have VB6 and Access 2000 on my development machine.

11 replies

by donq

I found the article??? It adresses the Access 97 Data Access ActiveX Control and has an update available if you are using Access 97. I am not. I am after the TreeView control recommended in the article you recommended - but there is no information in the article (or your answer) to help me dornload TreeView into Access 2000.

by mark.thomson

I tried adapting MSDN article Q165993 for Access 2000 / VB6 by doing the following

for step 3 - I clicked the "more controls" icon in the toolbox (crossed tools followed by an ellipsis)
for step 4 - instead of Microsoft TreeView Control, version 5.0 I chose Microsoft Treeview Control version 6.0 (SP4) - I have Visual Studio 6 SP4 .

The example source code worked for me without modification although you may have to add a reference to Microsoft DAO 3.6 Object Library using the references item in the Tools menu of the visual Basic environment in Access.

by seagull data services

Sorry, Go to Tools, ActiveX Controls...

The link is there but won't respond to that link for some reason. Go to msdn.microsoft.com/library and in the search box I found it again by typing "using the treeview control".

This discussion is closed to new replies.