ACC2000: FontName Property of Navigation Control on Data Access Page Is Not Updated as Expected (207754)



The information in this article applies to:

  • Microsoft Access 2000

This article was previously published under Q207754
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

SYMPTOMS

When you click the navigation control on a data access page and use the Font box on the Format toolbar to change the font, the FontName property of the navigation control is not updated to reflect the font change that you made.

CAUSE

The navigation control is built with the HTML Object tag inside the HTML Div tag with a series of parameters. FontName is a parameter of the Object tag and FontFamily is a style setting of the Object tag. The Format toolbar has no knowledge of the parameter values for the Object tag.

RESOLUTION

Use one of the following three methods to work around this problem.

Method 1

  1. Open the data access page that has the navigation control in Design view.
  2. Click the navigation control to select it. After you have selected it, double-click the navigation control.
  3. Right-click the navigation control, and then click Select All.
  4. In the Font box on the Format toolbar, select the font that you want.
  5. On the View menu, click Page View. Note that the font has changed in the navigation control.

Method 2

  1. Open the data access page that has the navigation control in Design view.
  2. Click the navigation control to select it.
  3. On the View menu, click Properties.
  4. Click the Other tab.
  5. Change the FontName property to the font that you want, and then press ENTER.
  6. On the View menu, click Page View. Note that the font has changed in the navigation control.

Method 3

  1. Open the data access page that has the navigation control in Design view.
  2. On the Tools menu, point to Macros, and then click Microsoft Script Editor.
  3. Scroll down in the source code to the navigation control.
  4. Click the navigation control to select it. Right-click the navigation control, and then click Always view as text. Note that the navigation control now appears as text.
  5. Locate the parameter FontName in the text, and then change it to the font that you want.
  6. Click View, and then click Page View. Note that the font has changed in the navigation control.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Open the sample database, Northwind.mdb.
  2. Click Tables under Objects, and then click the Categories table.
  3. On the Insert menu, click Page, click Design View, and then click OK.
  4. Double-click CategoryID in the field list to add the field to the page.
  5. Click the navigation control at the bottom of the page to select it.
  6. On the Format toolbar, select Wingdings in the Font box.
  7. On the View menu, click Page View. Note that the font on the navigation bar has not changed.
The FontName property of the navigation control is not changed when you select a font from the Font box on the Format toolbar; therefore, the font is not changed on the control. However, the FontFamily property of the navigation control does change to the font that you selected.

Modification Type:MajorLast Reviewed:6/24/2004
Keywords:kbDAP kbprb KB207754