mlagrange
asked on
Right-click menus on TreeView broken since converting from mdb to accdb
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!