Solved

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

Posted on 2013-01-09
2
672 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
[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
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

739 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