Microsoft KB Archive/295246

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

Article ID: 295246

Article Last Modified on 9/27/2006

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



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.



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 &quot;Symptoms&quot; section of this article.

Additional query words: pra

Keywords: kbbug kbdap kberrmsg kbnofix KB295246

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.