Access 2010 using USysRibbons method to display menu tab
Error: Microsoft Access cannot run the macro or callback function 'module_name.sub_name'.
XML:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="CallbackOnLoad">
<ribbon startFromScratch="false">
<tabs>
<tab id="MyTab" label="Button Demo">
<group id="MyGroup" label="Button Demo">
<button id="MyBtn1" getSize="CallbackGetSize" label="Button 1" imageMso="BevelShapeGallery"
getKeytip="CallbackGetKeytip" onAction="basButton.MyButtonCallbackOnAction"
getShowLabel="MyButtonCallbackShowLabel"
getShowImage="MyButtonCallbackShowImage"
getScreentip="CallbackAllgGetItemScreentip" getSupertip="CallbackAllgGetItemSupertip"/>
<button id="MyBtn2" getSize="CallbackGetSize" getLabel="CallbackGetLabel" imageMso="BevelShapeGallery"
getKeytip="CallbackGetKeytip"
getShowImage="MyButtonCallbackShowImage"
onAction="MyButtonCallbackOnAction"/>
</group>
</tab>
</tabs>
</ribbon>
The callback MyButtonCallbackOnAction is located in module basButton
This behaviour is inconsistent with Word 2010 where you can use 'module_name.sub_name' convention. The above error message does not indicate that this naming convention is not supported.
Hope this helps someone.