Access 2007 custom Ribbon with ADP file?

bfbenn

New Member
Joined
Jul 30, 2003
Messages
4
I have an application-specific custom ribbon interface (just adds to the standard Access ribbon) that is working perfectly in an Access 2007 db (accdb). I'm in the process of migrating this existing db to an Access Data Project (adp file) that uses SQL Server as a backend.
The problem I'm having is making the custom ribbon available in the ADP project. Apparently there is no way to define a local table in an ADP, so I can't create the USysRibbons table that contains the XML code for the ribbon - it's not recognized by Access when it's hosted on SQL Server.
So, I set up a VBA procedure that uses the LoadCustomUI method of the Access object to load the ribbon dynamically. This does get the ribbon definition into Access - the name of my custom ribbon shows up in the Ribbon Name dropdown in the Access Options dialog - but I still don't get the custom ribbon displayed.
Finally, I set up an ****** callback specified on the CustomUI node in the XML definition for the custom ribbon. When the callback runs it just executes the Invalidate method of the IRibbonUI object that's passed to the callback, which I thought would refresh the ribbon and show my custom tab - still nothing.
The way I thought this should work is that when the LoadCustomUI runs the ribbon is loaded, and the ****** callback forces a refresh of the ribbon so that it would become visible. I did enable error checking, and I don't see any errors at all when this runs, but I still get no custom ribbon displayed. As I mentioned above, this ribbon works perfectly when used with a standard accdb file so I'm at a loss as to what I'm doing wrong.

What am I missing?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Were you ever able to find an answer to getting a custom ribbon to show in and Access ADP file?
 
Upvote 0
No, unfortunately this doesn't seem to be a topic of interest to the gurus.
I'm just using ODBC links with a standard .accdb file - slower, but it works!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top