12.9. Customizing the Quick Access Toolbar

The Quick Access Toolbar, or QAT, is the small group of controls that appears next to the Office button. You can also use this space to add buttons to your application. The QAT provides fast access to those controls that are used most frequently. Add controls to the QAT for your application by adding the qat node as a child of the Ribbon node.

The following XML adds a button to the QAT. The documentControls node adds controls only for the current database.

<qat>
    <documentControls>
        <button id="btnHello" onAction="=MsgBox('Hello!')"/>
    </documentControls>
</qat>

Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.