473,383 Members | 1,919 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,383 software developers and data experts.

MS Access Treeview error loading ActiveX control

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 with the TreeView then the "Expand" is replaced by e.g. NodeClick or Collapse. Every message only appears once, when I performed every possible Event no message pops up - but the treeview doesnt work, it doesnt open any form (the treeview is used as a menu).

The mysterious thing to me is - last week those Access Databases all worked fine - we have a database for every customer (frontend and data together) and now suddenly every database 'crashes'. I assumed that the ActiveX Treeview Control was changed by a Windows Update or something similar but also an old WinXP laptop throws the same error messages. Even a database that hasnt been opened for 2 weeks and definitely worked back then doesnt work anymore. So from my point of view there cant be anything in the code that is wrong.

Nevertheless I tried to set a breakpoint in the Form_Load event, but the Expand Error already pops up before the first line of OnLoad is executed. The OnLoad Event is the only event that is specified (GUI says "Event Procedure", its VBA Code only) and all other fields are blank (and no code specified). I created a blank VBA for e.g. MouseMove, but the error still appears.

What is this error and where does it come from? Hope anyone can help.

Regards,

Matthias
Aug 20 '12 #1
6 11282
My Treeview Project 5

via this URL there is a sort of "tutorial" where someone makes use of the treeview in access.
When I download his files the same errors appear. So I think it definitely has to do with the Treeview-ActiveX controls.
Do the files work at your computer? If so, why so?
Hopefully someone has an idea..
Aug 20 '12 #2
zmbd
5,501 Expert Mod 4TB
The one form I've played with seems OK; however, I haven't used this control much.... I did however, find a file here: http://www.psci.net/gramelsp/TreeviewSample.zip that when unpacked worked just fine with my local installs.

It may be that the updates haven't cycled thru our systems yet (typically over the weekends when they hit) so if this changes on Monday or later this week, I'll post back.

-z
Aug 20 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
If it is only affecting your computer I would try a re-install.

If it was only affecting a single form/datebase my guess would be that the database had become corrupt and you could try decompiling it and then a Compact+Repair and a recompile.
Aug 22 '12 #4
TheSmileyCoder
2,322 Expert Mod 2GB
I just stumpled accross this in the Professional Microsoft Access Developers' Network (PMADN)


Luke Chung
• We just published a detailed paper describing this issue, some of the symptoms, and how to address it entitled:

Fixing the Microsoft Windows Common Control Library (MSCOMCTL.OCX) Security Update
http://www.fmsinc.com/MicrosoftAcces...mctl/index.htm

It details how the suggestion in the KB article (http://support.microsoft.com/KB/2687441) fails, and a workaround that involves:

•Installing an older version of the control
•Registering it
•Unregistering it, and
•Re-registering the updated one

What a hassle. Hope this helps

I haven't tested his solution, since I don't (yet) have a problem with the treeview, but Luke and his firm does alot of good work, so I would suggest checking it out.
Aug 23 '12 #5
@TheSmileyCoder
I've just tested this out. I just did the unregister and register of the new mscomctl.ocx and it worked!! Have been tearing my hair out over this for a couple of days, so many thanks for posting this!!! Very relieved and grateful :)
Aug 23 '12 #6
TheSmileyCoder
2,322 Expert Mod 2GB
I can only imagine the frustration you must have felt. I think 95% of my applications would not be usuable without the treeview, I use them extensively, and so much functionality are tied into the treeview and its events.
Aug 23 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: google | last post by:
I have a page that requires 2 controls to be loaded... one is a Java Applet, the other is an ActiveX control. The ActiveX control is dependent on the Java applet being loaded first. Here is an...
11
by: Dave | last post by:
I have this sample HTML code: <html> <head> <script type="text/javascript"> var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); </script> </head>
3
by: Stan | last post by:
Hallo, I have developed an application in MS Access 2000 (Polish version) under MS Windows XP prof (also Polish). Now I would like to run this code on MS Windows XP EN and MS Access XP EN. I have...
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?
0
by: ann | last post by:
Hi, I am trying to add an ActiveX control on my ASP.NET web form (the language for code behind is C#). I have some client-side vbscript to handle events from the html input buttons. In the...
0
by: roni | last post by:
hi. i have a ActiveX control (with gui, that you need to place on form). i want to set a parameter when my application is start ,and according to that parameter i will load / not load the...
0
by: Juan Martinez | last post by:
Hello! I have a problem with Visual Studio 2005, i am using a control called VectorDraw in Visual Studio 2003 and works fine, but when i try to use it in Visual Studio 2005 it show a error: ...
0
by: =?Utf-8?B?R2lvcmdpbw==?= | last post by:
Hi, I need some urgent help and your help is very much appreciated. I have a control in a directory named components and I am trying to load that control and add it to the page and when I run...
0
by: LorenVS | last post by:
Hello Everybody, I'm new here, and I'm hoping someone can help me out... I'm creating an ActiveX control for an company intranet. This control needs to access Microsoft Outlook (specifically...
3
by: haiminnu | last post by:
can u please help me to solve this problem.The error is "ActiveX control not loaded.Set your browser Internet options to allow ActiveX download!" I am using ocx.but when i run project this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.