?
Solved

Cannot view Treeview controls in Access (2010) after upgrading to Autodesk 2015 and VBA 7 (previously Autodesk 2013 with VBA 6)

Posted on 2014-12-28
5
Medium Priority
?
353 Views
Last Modified: 2015-01-18
Hi,

I have an Access database and it consists of few forms. When I try to view a form which has a tree view control in it, I get "There is no object in this control" error.

This machine previously had Autodesk 2013 (VBA 6) installed,  and later upgraded to Autodesk 2015 (VBA 7.1)

It is a Windows 7 (Professional) 32-bit operating system

It is very much appreciated if anyone can help me to fix this issue.

Thank you
0
Comment
Question by:managedsol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Expert Comment

by:Jamie Garroch
ID: 40521469
There is no 64 bit version of the MSComCtl in VBA7 and hence the Tree View control is deprecated as per this MSFT article:

http://msdn.microsoft.com/en-us/library/office/ee691831%28v=office.14%29.aspx#odc_office2010_Compatibility32bit64bit_ActiveXControlCOMAddinCompatibility
0
 
LVL 48

Expert Comment

by:Dale Fye
ID: 40521581
although Jamie is correct, you don't indicate whether you are using 32 bit or 64 bit Office.  Since 32 bit Office will run (and is actually recommended by Microsoft) on 64 bit operating systems, I would encourage you to use the 32 bit version of Office if you can.
0
 
LVL 85
ID: 40521734
I would bet that the update modified the files on which that treeview library depends, which renders your app unusable.

Get rid of the treeview, or use something like this: http://www.jkp-ads.com/articles/treeview.asp or use a valid 3rd party control like the Bennet-Tec TList: http://www.bennet-tec.com/btProducts/TList/TList.htm or DBi-Tec's ctTree; http://www.dbi-tech.com/ComponentPage_ctTree.aspx. I've used both of the last two, and they work well in my limited testing.
0
 

Accepted Solution

by:
managedsol earned 0 total points
ID: 40548143
Hi,

Thank you for all your comments. Error occurred due to an incorrect version of  MSCOMCTL.OCX.  Everything worked ok once I replaced that file.

Regards
0
 

Author Closing Comment

by:managedsol
ID: 40556003
It was due to an incorrect ocx file in the system.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question