473,856 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Treeview - Is it Safe Yet?

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?

Nov 13 '05 #1
42 11575
"lauren quantrell" <la************ *@hotmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
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?


You misunderstand. *Access* doesn't have a Treeview control. Windows has a
TreeView control as part of the Common Dialog library. To use this control in
Access means adding a reference to an external non-native library and it is the
general practice of making your Access app dependent on external libraries that
is to be avoided. This is because of versioning and other "DLL Hell" problems
that will break your app.

The common dialog library has just been one of those more often revised by MS
with the various versions (usually) not being compatible with one another so it
is one of the worst external libraries to consider adding a reference to.
Fortunately, nearly all of the functionality of the common dialog library can be
replicated with API calls, making it unnecessary to add a reference to it.
Unfortunately the Treeview is not one of these.

Now...it is possible that MS has stabilized the common dialog library in recent
years and therefore it is safer to use in your Access app, but this would not be
due to using a newer version of Access. It would be due to you (and your users)
all using a relatively new flavor of Windows. If you can count on that then you
might be alright. Personally I avoid any external references on my Access apps
unless there is absolutely no other way and only then on my corporate apps where
I have some idea and control over what is or isn't installed on the target PCs.
For an app that will be generally distributed it is just not worth the hassles
that will almost certainly occur.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com



Nov 13 '05 #2
Rick,
Thanks for the reply.
In anticipation of the Treeview Control still being an issue, I created
a treeview wannabe from scratch last night (maybe 4 hours work) that
uses one continuous form, one temp table, four stored procedures and
the Wingdings font and 100% replicates the functionality of the Windows
ActiveX Treeview control but also aloows graphical button-like objects
for the dropdowns. My version has two node-like levels though there
would be no limit to how many can be added. Plus it's extremely fast-
loading about 100 levels with 10,000 records. Anyone interested in how
this was done and I'll give more details...
lq

Nov 13 '05 #3
"lauren quantrell" wrote
In anticipation of the Treeview Control still
being an issue, I created a treeview wannabe
from scratch last night (maybe 4 hours work)
that uses one continuous form, one temp table,
four stored procedures and the Wingdings
font and 100% replicates the functionality of
the Windows ActiveX Treeview control but
also aloows graphical button-like objects
for the dropdowns. My version has two
node-like levels though there would be no
limit to how many can be added. Plus it's
extremely fast-loading about 100 levels
with 10,000 records. Anyone interested in how
this was done and I'll give more details...


Lauren, I think many people would be interested in a done-all-in-Access
substitute for the TreeView. Have you considered posting it somewhere and
making it available after you have done a bit more testing? Release it first
as a 'beta' version to limit the gripes, if you decide to to so.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #4
An alternative that is really, really great is Access UI.

No, this isn't spam, but it is an endorsement. I reviewed the product
for the Database Journal web site and I'm using it everwhere I can.
The UI is easy to configure and has such a professional look. Check
it out at the AccessUI web site or go read my product review ...

http://www.accessui.com/
http://www.databasejournal.com/featu...le.php/3519961

--

Danny J. Lesandrini
dl*********@hot mail.com
http://amazecreations.com/datafast/

"Larry Linson" <bo*****@localh ost.not> wrote in message news:hdkUe.235$ b37.190@trnddc0 4...
"lauren quantrell" wrote
In anticipation of the Treeview Control still
being an issue, I created a treeview wannabe
from scratch last night (maybe 4 hours work)
that uses one continuous form, one temp table,
four stored procedures and the Wingdings
font and 100% replicates the functionality of
the Windows ActiveX Treeview control but
also aloows graphical button-like objects
for the dropdowns. My version has two
node-like levels though there would be no
limit to how many can be added. Plus it's
extremely fast-loading about 100 levels
with 10,000 records. Anyone interested in how
this was done and I'll give more details...


Lauren, I think many people would be interested in a done-all-in-Access substitute for the TreeView. Have you
considered posting it somewhere and making it available after you have done a bit more testing? Release it first as a
'beta' version to limit the gripes, if you decide to to so.

Larry Linson
Microsoft Access MVP

Nov 13 '05 #5
I am planning on doing just that. I've been testing the past few hours
and it looks terrific. No problems. Plus it looks great as well.

Nov 13 '05 #6
"lauren quantrell" wrote
I am planning on doing just that. I've
been testing the past few hours
and it looks terrific. No problems.
Plus it looks great as well.


I look forward to giving it a try, Lauren.

I really like "controls" that are done all-in-Access so I don't have to
worry about distributing other "things" with my application that have to be
loaded, registered, etc..

Larry Linson
Microsoft Access MVP
Nov 13 '05 #7
Larry,
I rewrote the code to make it more generic (Level1ID instead of
SalesTeamID, etc.) and am populating more than one recordset with it.
It works great.

Nov 13 '05 #8
Bob
Lauren -

Are you just teasing us or are you gonna post some code?

It sounds great. Please share.

Bob

Nov 13 '05 #9
I hope to do so by Monday morning. It's cramming on a deadline issue
until then.

Nov 13 '05 #10

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

Similar topics

6
11331
by: Mat Son | last post by:
recently an error appeared with a Treeview element in my access form. The expression Expand you entered as the event property setting produced the following error: There was an error laoding an ActiveX control on one of your forms or reports. When I click "OK" (only opportunity) the next error appears (Expand is replaced by MouseMove, MouseDown/Up, DblClick etc.), when I press Keys the KeyDown/Up/Press Message appears etc. When I interact...
0
9920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11063
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9535
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4580
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.