J
Jess
I have been working on an access database for while. I recently decided to
edit the ribbon in order to add a new button (a spell check tool). I just
added a few lines to the USysRibbons table. I did not do anything else. The
button worked as expected for a while. Something eventually went wrong for
some reason and I get the below error.
However previous versions of my database (developed just before I edited the
ribbon and consequently the USysRibbons table) no longer work. It looks that
THIS ERROR IS FOLLOWING PREVIOUS VERSIONS OF MY DATABASE.
The error I get is as follows:
Error found in Custom UI XML of :C:\Documents and
Settings\sssssss\desktop\filename.mdbâ€:
Line:10
Column:46
Error Code 0x80004005
Element ‘{http://schemas.microsoft.com/office/2006/01/customui}command’ is
unexpected according to content model of parent element
‘{http://schemas.microsort.com/office/2006/01customui}group’
If I click on “Ok to all†the error no longer shows for that particular part
of my application until I close and reopen access.
Below are the ribbons I have. These same ribbons worked great until I
eventually edited them –the unedited version is shown.
Ribbon1
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbMain" label="XXX XXXX" visible="true">
<group id="dbExit" label="Exit">
<control idMso="FileCloseDatabase" label="Exit"/>
</group>
<group id="dbFindSearch" label="Find/Search">
<control idMso="FindDialog" label="Find"/>
<control idMso="SortUp" label="Sort Up"/>
<control idMso="SortDown" label="Sort Down"/>
<control idMso="FiltersMenu" label="Filter"/>
<control idMso="FilterClearAllFilters" label="Remove Filter"/>
</group>
<group id="dbDelete" label="Delete ">
<control idMso="RecordsDeleteRecord" label="Delete Record"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Ribbon2
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbMain" label="XXX XXXX" visible="true">
<group id="dbExit" label="Exit">
<control idMso="FileCloseDatabase" label="Exit"/>
</group>
<group id="dbFindSearch" label="Find/Search">
<control idMso="FindDialog" label="Find"/>
<control idMso="SortUp" label="Sort Up"/>
<control idMso="SortDown" label="Sort Down"/>
<control idMso="FiltersMenu" label="Filter"/>
<control idMso="FilterClearAllFilters" label="Remove Filter"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
edit the ribbon in order to add a new button (a spell check tool). I just
added a few lines to the USysRibbons table. I did not do anything else. The
button worked as expected for a while. Something eventually went wrong for
some reason and I get the below error.
However previous versions of my database (developed just before I edited the
ribbon and consequently the USysRibbons table) no longer work. It looks that
THIS ERROR IS FOLLOWING PREVIOUS VERSIONS OF MY DATABASE.
The error I get is as follows:
Error found in Custom UI XML of :C:\Documents and
Settings\sssssss\desktop\filename.mdbâ€:
Line:10
Column:46
Error Code 0x80004005
Element ‘{http://schemas.microsoft.com/office/2006/01/customui}command’ is
unexpected according to content model of parent element
‘{http://schemas.microsort.com/office/2006/01customui}group’
If I click on “Ok to all†the error no longer shows for that particular part
of my application until I close and reopen access.
Below are the ribbons I have. These same ribbons worked great until I
eventually edited them –the unedited version is shown.
Ribbon1
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbMain" label="XXX XXXX" visible="true">
<group id="dbExit" label="Exit">
<control idMso="FileCloseDatabase" label="Exit"/>
</group>
<group id="dbFindSearch" label="Find/Search">
<control idMso="FindDialog" label="Find"/>
<control idMso="SortUp" label="Sort Up"/>
<control idMso="SortDown" label="Sort Down"/>
<control idMso="FiltersMenu" label="Filter"/>
<control idMso="FilterClearAllFilters" label="Remove Filter"/>
</group>
<group id="dbDelete" label="Delete ">
<control idMso="RecordsDeleteRecord" label="Delete Record"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Ribbon2
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbMain" label="XXX XXXX" visible="true">
<group id="dbExit" label="Exit">
<control idMso="FileCloseDatabase" label="Exit"/>
</group>
<group id="dbFindSearch" label="Find/Search">
<control idMso="FindDialog" label="Find"/>
<control idMso="SortUp" label="Sort Up"/>
<control idMso="SortDown" label="Sort Down"/>
<control idMso="FiltersMenu" label="Filter"/>
<control idMso="FilterClearAllFilters" label="Remove Filter"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>