I have an Access database with the following ribbon XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" loadImage="LoadImages">
<ribbon startFromScratch="false">
<contextualTabs>
<tabSet idMso="TabSetFormReportExtensibility">
<tab id="tabContextual" label="My Contextual Tab">
<group id="contextualGroup" label="My Group">
<labelControl id="myLabels" label="Sample"/>
<button id="btnDemo" size="large" label="Demo"/>
</group>
</tab>
</tabSet>
</contextualTabs>
</ribbon>
</customUI>
My understanding is that this particular ContextTab will show when a form is opened but I cannot get any ContextTabs to show when I open any form at all.
Is my understanding wrong or is there an error in the XML?
Also, should this code indeed show a ContextTab when a form is opened, how would you show a different context menu for a different form? As I see it, the XML above will open that ContextTab when any form is opened and that appears to be driven by the ribbon so how does the ribbon decide which ContextTab to open for which form (should there be more than one ContextTab defined!!).
Thanks