Access.2007.VBA.Bibl..

(John Hannent) #1

  1. To load another Ribbon, select it from the Ribbon Name drop-down list, and close and
    reopen the database.


You may get an error message like the one shown in Figure 15.10 when reopening a
database after creating or editing XML code. Note the line and column reference, which
should help in figuring out what the problem is, even if the error description isn’t much help.
Sometimes it is as simple as a missing bracket.

FIGURE 15.10

An informative error message when loading Ribbon customization XML code.


Form Ribbons..........................................................................................................


You can also make form Ribbons, to replace or customize the built-in Ribbons. The Test Ribbon
database has a sample form Ribbon, AddButtons. This Ribbon displays for a specific form, after
selecting it in the Current Database page of the Access Options screen, and in the form’s property
sheet. The XML for the AddButtons Ribbon is shown in Figure 15.11.

FIGURE 15.11

The XML code for the custom AddButtons form Ribbon.


NOTENOTE


Customizing the Ribbon with XML in Access Databases and Add-ins 15

Free download pdf