ACC2002: Error When You Click a Navigation Button Command on the Record Navigation Toolbar Shortcut Menu in a Data Access Page (295246)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q295246
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 try to activate an existing navigation button on the record navigation toolbar of a data access page, you receive the following error message, and then Access quit:
Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience.
NOTE: In some cases, Access quits, and then starts again automatically.

CAUSE

The ClassName property for the navigation button is invalid or blank.

RESOLUTION

Specify a valid class name for the navigation button. For an example of how to do so, follow these steps:
  1. Open the data access page in Design view.
  2. Right-click the navigation button that you are trying to activate, and then click Object Properties.
  3. On the Other tab of the property sheet, type a valid name for the ClassName property.
For more information about valid class names, click Microsoft Access Help on the Help menu, type customize a record navigation toolbar in the Office Assistant or the Answer Wizard, and then click Search to view the topic. In step 3 of this topic, click Make a control (such as a text box or bound span control) work like a navigation button to see a list of valid class names.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Open the Northwind sample database or the NorthwindCS sample project.
  2. Create a new data access page in Design view.
  3. Drag the CategoryName field onto the page.
  4. On the record navigation toolbar, click the Next button.
  5. On the View menu, click Properties, and then click the Other tab.
  6. Remove the default value from the ClassName property.
  7. Close the property sheet.
  8. On the data access page, right-click the record navigation toolbar, point to Navigation Buttons, and then click Next.
  9. Note that you see the behavior that is described in the "Symptoms" section of this article.

Modification Type:MinorLast Reviewed:9/27/2006
Keywords:kbbug kbDAP kberrmsg kbnofix KB295246