Results 1 to 3 of 3
  1. #1
    dlindner999 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3

    How do I get Undo and Redo to appear in my custom QAT toolbar?

    Hi all,
    I am trying to create a custom QAT toolbar. Everything works except for the Undo and Redo buttons. They're giving me an error:
    The specified control type 'button' is incompatible with the actual control type 'gallery' ID: Undo
    The specified control type 'button' is incompatible with the actual control type 'gallery' ID: Redo

    Code:
    <customUI xmlns=http://schemas.microsoft.com/office/2009/2007/customui onLoad="OnRibbonLoad">
       <ribbon startFromScratch="true">
          <qat>
             <documentControls>
                <button idMso ="Copy"/>
                <button idMso ="Paste"/>
                <button idMso ="PrintDialogAccess"/>
                <button idMso ="FilePrintPreview"/>
                <button idMso ="Undo"/>
                <button idMso ="Redo"/>
             </documentControls>
          </qat>
       </ribbon>
    </customUI>
    "OnRibbonLoad" is a function in a module that just opens and closes a dummy form...advice from someone else.
    If I take the Undo and Redo lines out of this code, it works fine. No errors.
    Any suggestions? Any help would be greatly appreciated!
    Thanks,


    Dan

  2. #2
    dlindner999 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3
    I've also tried changing it to <gallery idMso="Undo" /> but then I get another error about Gallery is unexpected according to content model of parent element.

  3. #3
    dlindner999 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3
    I found the fix for this elsewhere. Undo and Redo are referred to in Access as Controls, not Buttons. I changed
    <button idMso ="Undo"/>
    to
    <control idMso ="Undo"/>
    and it now works.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. docmd.gotocontrol after undo
    By JeroenMioch in forum Forms
    Replies: 7
    Last Post: 08-19-2013, 12:47 PM
  2. Replies: 2
    Last Post: 07-05-2012, 05:37 PM
  3. Undo problem
    By Waubain in forum Programming
    Replies: 4
    Last Post: 10-27-2011, 12:36 PM
  4. How to undo acCmdPaste ???
    By focosi in forum Programming
    Replies: 12
    Last Post: 09-25-2011, 01:48 PM
  5. Undo one action only
    By zoooza84 in forum Access
    Replies: 5
    Last Post: 08-21-2011, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums