Custom ribbon Sort Ascending bug?

A

Adrian

Access 2007 and SQL Server 2000

I am trying to create a custom ribbon for an ADP. I can other commands to
work, but Sort By (Ascending or Descending) always remain greyed out. I have
googled this and found one or two other posts referring to this problem, but
no solution. This is the XML I am using.

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<qat>
<documentControls>
<button idMso="FilterBySelection"/>
<button idMso="ApplyFilter"/>
<separator id="sep221" />
<button idMso="AdpOutputOperationsSortAscending" enabled =
"true"/>
<button idMso="AdpOutputOperationsSortDescending"/>
<separator id="sep222" />
<button idMso="GoToNewRecord"/>
<button idMso="RecordsDeleteRecord"/>
</documentControls>
</qat>
<tabs>
<tab id="tabControls" label="Controls">
<group id="grpFilters" label="Filters">
<button idMso="FilterBySelection" size="large" label="Filter By
Selection" tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:="
/>
<separator id="sep14" />
<button idMso="ApplyFilter" size="large" label="Apply Filter"
imageMso="FilterAdvancedByForm"
tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:=" />
</group>
<group id="grpSorting" label="Sorting">
<button idMso="AdpOutputOperationsSortAscending" size="large"
label="Sort Asc"
tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:=" />
<separator id="sep21" />
<button idMso="AdpOutputOperationsSortDescending" size="large"
label="Sort Desc"
tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:=" />
</group>
<group id="grpRecordEditing" label="Record Editing">
<button idMso="GoToNewRecord" size="large" label="Add Record"
screentip="Adds a record"
tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:=" />
<separator id="sep22" />
<button idMso="RecordsDeleteRecord" size="large" label="Delete
Record" tag="RibbonName:=;inMenu:=;CustomPicture:=;CustomPicturePath:=" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

Any suggestions welcome.

Thanks,

Adrian
 
Joined
Jun 3, 2009
Messages
1
Reaction score
0
Try this:

<control idMso="SortUp"/>
<control idMso="SortDown"/>.

(control instead of button and SortUp instead of AdpOutputOperationsSortAscending ).
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top