Frothingslosh
Premier Pale Stale Ale
- Local time
- Today, 02:28
- Joined
- Oct 17, 2012
- Messages
- 3,276
I would like to create a custom ribbon for an Access 2007 application I'm tweaking so it only has the Home tab, and in that home tab, doesn't show the Views Group. Bear in mind, I've never TOUCHED XML before this, so I'm not entirely sure I even have the XML right.
Anyway, based on the MS site, I am using this for the XML code:
However, when I enable it and start the database, I get the following errors:
Error 1:
Error 2:
I'm guessing I'm hiding the View group incorrectly (I assumed it would work just like hiding a tab), but I cannot find anything online showing how to do so. I would use a ribbon creation tool I found online, but it's not free and the company will not authorize the purchase.
So my question is, how do I fix this? I've been searching the web without much success so far.
Anyway, based on the MS site, I am using this for the XML code:
Code:
<customUI xmlns="[URL]http://schemas.microsoft.com/office/2006/01/customui[/URL]">
<ribbon startFromScratch="false">
<tabs>
<tab idMso="TabCreate" visible="false" />
<group idMso="GroupViews" visible = "false" />
</group>
<tab idMso="TabExternalData" visible="false" />
<tab idMso="Datasheet" visible="false" />
</tab>
</tabs>
</ribbon>
</customUI>
However, when I enable it and start the database, I get the following errors:
Error 1:
Code:
Line: 5
Column: 54
Error Code 0x80004005
Element '{http://schemas.microsoft.com/office/2006/01/cusomui}group'is unexpected according to content model of parent element '{http://schemas.microsoft.com/office/2006/01/customui}tabs'.
Error 2:
Code:
Line: 6
Column: 16
Error Code 0xC00CEE3B
The name of the end tag of the element must match the element type in the start tag.
I'm guessing I'm hiding the View group incorrectly (I assumed it would work just like hiding a tab), but I cannot find anything online showing how to do so. I would use a ribbon creation tool I found online, but it's not free and the company will not authorize the purchase.
So my question is, how do I fix this? I've been searching the web without much success so far.