O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required