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

Treeview nodeClick doesn't fire when clicked

We are using the treeview common control in an MS Access form. I've encountered a situation with a user where when he clicks a node in the tree, the nodeclick() event does not fire, yet the tree is still fully navigable. He can open and close all the branches, but the background code that picks up the nodeclick() just doesn't fire. However we have buttons on the screen that, thru code, find the next node and "click" it through VBA. That works fine and the resulting nodeclick() code does fire in that case, just not when the user uses the mouse to click it.

I'm struggling for how to even begin troubleshooting this. It's one thing to have an error happen that I can trace thru, but when something doesn't happen and no event is triggered, how might I track down where the failure is? BTW, this is a Windows XP/Office 2007 PC.

BACKGROUND:
We were hit hard by the MS12-060 patch issue as documented in the following KB: http://support.microsoft.com/kb/2748410
We're still dealing with users that are opening the database for the first time since August and discover it won't work. In troubleshooting the problem, another administrator did "something" to the PC. Unfortunately I don't know what they did but I do know it had to do with the MSCOMCTL.OCX library, which is the exact same library the treeview comes from. I've confirmed the filesize/date and it is still the correct common controls library version. Otherwise the entire database is functional and working fine.

Any ideas?
Dec 12 '12 #1
12 9166
NeoPa
32,556 Expert Mod 16PB
Has the setting to trust add-ins been reset by any chance? A2007 makes security very complicated to manage sensibly, and this is one issue that might cause such symptoms.
Dec 12 '12 #2
hmm, that's a good one to look for, thanks. I'll check so see if it is different on that PC than the others.
Dec 12 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Try putting the following in a .bat file and run it from the users pc:
Expand|Select|Wrap|Line Numbers
  1. reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f
  2.  
  3. if exist %systemroot%\SysWOW64\cscript.exe goto 64 
  4.  
  5. %systemroot%\system32\regsvr32 /u /s mscomctl.ocx 
  6.  
  7. %systemroot%\system32\regsvr32 /s mscomctl.ocx
  8.  
  9. exit
  10.  
  11.  
  12. :64 
  13.  
  14. %systemroot%\sysWOW64\regsvr32 /u /s mscomctl.ocx
  15.  
  16. %systemroot%\sysWOW64\regsvr32 /s mscomctl.ocx
  17.  
  18. exit
I have also attached the file (rename it from .txt to .bat)
Attached Files
File Type: txt Fixit.txt (357 Bytes, 834 views)
Dec 12 '12 #4
TheSmileyCoder
2,322 Expert Mod 2GB
I have had many users have the problem with the MS patch, and one thing I noticed is that it seems to hit in very in-consitent ways. On some PCs the treeview was partly functional, on others no funtionality at all, the db wouldn't even open.
Dec 12 '12 #5
Thanks TheSmileyCoder. We've experienced and seen the exact same behavior. I has already removed the problematic registry key and registered and unregistered the library. That's the process that has worked consistently (luckily) for over a hundred users, and as soon as I did that, this guy's database did stop toss out errors. However this is the first time we've seen that the errors stopped, yet part of the treeview control just plain doesn't work. Like I said, everything appears to be working fine and as designed except for the nodeclick. Having a tough time running it down.

NeoPa, I did confirm the add-in trust settings and they are still set the same as mine (yet my PC doesn't exhibit the behavior), so I think it must be something else.

Unfortunately I'm not allowed to have admin access to the PC because we're in a huge enterprise environment. I'm strongly suspicious that an administrator did something on their own prior to me giving them the instructions for how to fix the MS12-060 patch issue. So once we had them patch it correctly the known errors went away but this missing nodeclick event remains.
Dec 13 '12 #6
TheSmileyCoder
2,322 Expert Mod 2GB
OK
I presume you have allready tried hitting up the user with a new frontend?

Access 2010 has a new tab specific for Active x security settings. I don't know if Access 2007 has this as well, and I have never had the need to look in it, but may be worth a shot.
Dec 13 '12 #7
Yep, put an entirely new copy of the database on their PC and that copy exhibits the same behavior. And if I move their problematic DB to my PC it doesn't act that way. So I'm confident it is isolated to his PC and is not something internal to that actual MDB file.

Thanks for the pointer about ActiveX security. From what I know that's all controlled via group policy and not directly in Access so it'll take some time for me to get someone to do that for me. But have you ever seen a setting like that only disable part of a control's behavior? The treeview control works perfectly in every other use, just not the nodeclick. I would think that if it was a security setting being disabled, it'd be breaking the whole thing rather than just one event. Does that sound logical or am I overthinking it?
Dec 13 '12 #8
TheSmileyCoder
2,322 Expert Mod 2GB
It does sound logical. But just like you I am perplexed, and to be honest shooting in the dark. Do you have other treeview events that work as intended when triggered by the user and not by code?

Is it both keyboard and mouse input that fails to trigger the nodeclick event? Can the mousedown/mouseup be triggered?
Dec 13 '12 #9
Thank you! Yes, other events do work fine from the GUI side, but I had my head down so much I didn't think to put in new event triggers to confirm all events are actually showing up in VBA. I'll work in that direction and see what I can find. Thanks again for the suggestion, hopefully that'll pan out.
Dec 13 '12 #10
NeoPa
32,556 Expert Mod 16PB
Good work between you guys. I would simply add that it is worth looking through all the security settings, rather than just the Add-In one I referred to earlier. Make sure it trusts the VBA project etc. I'm sure you already have, but it doesn't hurt to have it documented in the thread. Others my find their way here in future and need more details spelled out ;-)
Argonautical:
From what I know that's all controlled via group policy and not directly in Access so ...
Group Policy covers various things across a Domain including Users, Servers, PCs etc. It is another level of control, but it is still controlling the same items that are already present in the Users, Servers & PCs. This means that direct control in Access is not incompatible with Group Policy control. Both can, and do, pertain to the same settings on your PC. However, in many cases it is possible for GP settings to be mandatory and thus unable to be changed except via GP. What I am trying to say is that it isn't true to say that using GP necessarily precludes the normal interface, but sometimes it can of course.
Dec 13 '12 #11
Great point NeoPa. I was thinking that some of the ActiveX and other security controls were only accessible through GP in Access 2007/WinXP. I guess that may not be the case, but either way you make a valued point for anyone following up on this issue. Thanks!
Dec 13 '12 #12
NeoPa
32,556 Expert Mod 16PB
Glad to help where I can :-)

If you do find any settings within Access that are exclusively controlled by GP then you will know because trying to change/set them will result in a message informing you that the particular setting is under the control of the GP and you need to speak to your administrator if you want it changed. I don't have an example to hand, so can't post the exact message, but it isn't ambiguous. You'll know.
Dec 13 '12 #13

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

Similar topics

0
by: Alex Stevens | last post by:
Hi, I have a page in which I've added code to the Page_Load event. I send the url to a user in an email, and they click on it to activate an account. I put a breakpoint on the first execuable...
14
by: xxbmichae1 | last post by:
I have a <select> object that i've set up an onchange event that fires in IE fine when I use the cursor up and down in the list, but If I use the cursor up and down in Firefox the event doesn't...
2
by: Peter Afonin | last post by:
Hello: I'm deleteing data using Datagrid, then rebind it. For some reason ItemDataBound event doesn't fire after DeleteCommand. Why is this? Is it by design, or I'm missing something? I have...
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
0
by: MalingreM | last post by:
Hi, I'm quite new to sql2005, and I've the following problem. When I insert records in table Data one by one, the insert/update trigger fires correctly, but: when i insert multiple records at once;...
1
by: km7kumar | last post by:
Any ideas? thanks /kmk
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...
0
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,...
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
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,...

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.