ADP and ribbon customisation

L

LenRob

I have an ADP and have tried to create a custom ribbon. The ribbon works ok
in an ACCDB but when I reate the table usysribbons (which gets created on the
SQL server) than i cannot find my custom ribbon in the Access Options/
Current Database/ Ribbon and Toolbar options. The Ribbon Name combo is empty.

Is this because the usysribbons table is on the SQL server so not supported
correctly?
 
L

LenRob

Found the olny way seems to be by writing a bit of code to read from the
table and add the ribbon.
Code looks a bit like

Dim RS As Recordset
Set RS = CurrentProject.Connection.Execute("SELECT RibbonName,RibbonXML FROM
USysRibbons")
If Not RS.BOF Then
Application.LoadCustomUI RS("RibbonName").Value, RS("RibbonXml").Value
End If
RS.Close
Set RS = Nothing

and is run from an Autoexec macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top