473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TreeView controls and the like

I have seen mention of TreeView controls in other threads, but cannot
find information about these in the Online Help. I feel that I might
be missing out on some useful functionality. How can I access this
(and any other) extra controls, and how can I learn about them?

I use Access 2000 and Access 97.

Thank you,

Oliver
Nov 12 '05 #1
1 4454
"Oliver" <ol******@mailinator.com> wrote in message
news:24**************************@posting.google.c om...
I have seen mention of TreeView controls in other threads, but cannot
find information about these in the Online Help. I feel that I might
be missing out on some useful functionality. How can I access this
(and any other) extra controls, and how can I learn about them?

I use Access 2000 and Access 97.

Thank you,

Oliver


Access developers who work with the treeview control often have MS Office
Developer's edition which comes with a licence to work with this control.
Without it, you will not be able to insert this control into your forms. An
example of how it works can be seen below:

Create a new blank form and show it in design mode. From your toolbox
select the 'more controls' button which should be the last. Scroll down and
select Microsoft Treeview Control and place one on your form. Name the
control 'ctlTreeView'. Then paste the following code into the form's
module:

Option Compare Database
Option Explicit

Private Sub Form_Load()

Dim tvw As MSComctlLib.TreeView
Dim nod As MSComctlLib.Node

Set tvw = Me.ctlTreeView.Object

Set nod = tvw.Nodes.Add(, , "000-000", "National Characteristics")

Set nod = tvw.Nodes.Add("000-000", tvwChild, "100-100", "Australian")
Set nod = tvw.Nodes.Add("100-100", tvwChild, "100-101", "violently loud")
Set nod = tvw.Nodes.Add("100-100", tvwChild, "100-102", "alcoholic")
Set nod = tvw.Nodes.Add("100-100", tvwChild, "100-103", "rough necks")

Set nod = tvw.Nodes.Add("000-000", tvwChild, "100-200", "English")
Set nod = tvw.Nodes.Add("100-200", tvwChild, "100-201", "cold-blooded
queers")
Set nod = tvw.Nodes.Add("100-200", tvwChild, "100-202", "nasty complexions")
Set nod = tvw.Nodes.Add("100-200", tvwChild, "100-203", "terrible teeth")

Set nod = tvw.Nodes.Add("000-000", tvwChild, "100-300", "Russian")
Set nod = tvw.Nodes.Add("100-300", tvwChild, "100-301", "brutish")
Set nod = tvw.Nodes.Add("100-300", tvwChild, "100-302", "dumpy")
Set nod = tvw.Nodes.Add("100-300", tvwChild, "100-303", "boorish")

Set nod = tvw.Nodes.Add("000-000", tvwChild, "100-400", "Swedish")
Set nod = tvw.Nodes.Add("100-400", tvwChild, "100-401", "tedious")
Set nod = tvw.Nodes.Add("100-400", tvwChild, "100-402", "clean-living")
Set nod = tvw.Nodes.Add("100-400", tvwChild, "100-403", "boy scout types")

Set nod = Nothing

Set tvw = Nothing

End Sub

HTH

Tom
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Visual Studio 2003 .NET / C# I have a treeview object on a form which acts as the main menu controller for my application. the treeview is always in sight, and the form it is on acts as the...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
1
by: paradox | last post by:
I want to have a TreeView that shows an image on some items, but not all. Basically, if a certain condition is true, a caution icon is placed next to the treeview item. The problem is that, by...
5
by: Chris Kennedy | last post by:
Microsoft released some free asp.net controls recently - treeview, tabstrip. I can't remeber where to get them from. Can anyone help. Chris.
7
by: vsiat | last post by:
I am trying to create a treeview out of a database table with the typical structure ID, NAME, PARENTID, TYPE, EXTRA_INFO, where is linked to the . What I want to achieve is create a tree made...
4
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
4
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory...
1
by: doemon | last post by:
Hi, I'm working on a pagination control and I need to dynamically rerender a treeview to display the next set of nodes depending on which page we're on. For example, page 1 will dispaly only...
4
by: =?Utf-8?B?U2hhbmU=?= | last post by:
Hi all, Is it possible to add controls like buttons, textboxes etc to treeview nodes like this link: http://webui30.componentart.com/treeview/features/nesting_aspnetContent/WebForm1.aspx ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.