Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-01-09
2
Medium Priority
?
702 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 120

Accepted Solution

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

926 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