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

x
?
Solved

MS Access Ribbon problem

Posted on 2013-12-05
2
Medium Priority
?
802 Views
Last Modified: 2013-12-16
Can anyone tell my why this code would result in only the Home Tab being visible?
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="OnRibbonLoad" >
  <ribbon startFromScratch="true">
   <qat> </qat>
  <tabs>
         <tab idMso = "TabHomeAccess" visible="true"/>
         <tab idMso="TabCreate" visible="true" />
        <tab idMso="TabExternalData" visible="true"/>
         <tab idMso="TabDatabaseTools" visible="true"/>    
 
        </tabs>
  </ribbon>
<!-- *** BACKSTAGE ***-->
<backstage>  
 <tab idMso="TabPrint" visible="false"/>  
<button idMso="ApplicationOptionsDialog" visible="false"/>  
   </backstage>  
 </customUI>
0
Comment
Question by:annagarrison
2 Comments
 
LVL 52

Accepted Solution

by:
Gustav Brock earned 2000 total points
ID: 39700486
You need something like this:

<tabs>
    <tab id="MyTab" label="My test tab">
         <group idMso="TabHomeAccess" visible="true"/>
         <group idMso="TabCreate" visible="true" />
         <group idMso="TabExternalData" visible="true"/>
         <group idMso="TabDatabaseTools" visible="true"/>
         <group id="MyGroup" label="MyGroup" >
             <button id = "ButtonId" label = "Some label"
                 supertip="My tip"
             />
         </group>
    </tab>  
</tabs

/gustav
0
 
LVL 26

Expert Comment

by:Nick67
ID: 39701426
To be honest, the Ribbon and its XML are still half-baked.  Forcing folks to code up the xml by hand isn't primetime -- and very odd things occur if the syntax isn't ABSOLUTELY perfect.  Some of the items can be case-sensitive.

What can really help is Custom UI Editor For Microsoft Office.
It is discussed here
http://msdn.microsoft.com/en-us/library/aa338202.aspx
http://msdn.microsoft.com/en-us/library/aa338199.aspx
http://msdn.microsoft.com/en-us/library/aa722523.aspx

and available for download here
http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/08/07/7293.aspx

It allows you to copy-and-paste your prospective xml into it, and it then validates that the xml is 'well-formed'  If your xml is not well-formed, nothing bombs--but oddness in how the Ribbons elements will displays result--and the Ribbon doesn't display as you anticipate.

A very, very long but good discussion of the Ribbon is here
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27231448.html

By the time you've parsed the last link, you'll have seen links to just about everything known about the Ribbon in Access.  Last I looked, the schema for 2010 and 2013 remain the same.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

824 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