Solved

Right-click menus on TreeView broken since converting from mdb to accdb

Posted on 2013-01-09
2
625 Views
Last Modified: 2013-01-09
Hello - I have a TreeView control in an app that I converted from Access 2003 to Access 2010  (by creating a new empty accdb in 2010, and importing everything in)

Now, right-clicking on a TreeView node gets the error: "Invalid procedure call"

The only difference I see in the References is that the DOA path used to be:
C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll
and now it's:
C:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL

I guess this shouldn't surprise me, since they replaced CommandBars with the hated RibbonBar.

Is there any way to get right-click menus on the TreeView now?

Thanks
0
Comment
Question by:mlagrange
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 38760440
did you include a reference to mscomctl.ocx ?
0
 

Author Comment

by:mlagrange
ID: 38760567
Yes, TreeView works fine; it's just the pop-up menu's

ok, you made me go back and look at the line where it was blowing up so I could better describe to you where I was getting the error:

Set CBar = CommandBars.cbarTreeView

"cbarTreeView" is the pop-up menu object I set up for the TreeView

which made me ask myself, Did I import the "Menus and Toolbars" when I imported everything else?
And, of course, I had not...

I just did, and I've got right-click menus again

Thanks for making me look! And See!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now