Microsoft KB Archive/160124
Article ID: 160124
Article Last Modified on 1/19/2007
- Microsoft Access 97 Standard Edition
This article was previously published under Q160124
Moderate: Requires basic macro, coding, and interoperability skills.
After you convert a database that you created with the Database Wizard in Microsoft Access 7.0 in Microsoft Access 97, you may receive the following error message when you click the Change Switchboard Items button on the Main Switchboard form:
There is a line of code in the Main Switchboard form's class module that references a Microsoft Access 7.0 wizard. This line code must be modified for Microsoft Access 97.
To modify the line of code, follow these steps:
- Start Microsoft Access 97 and open the converted database.
- Open the Main Switchboard form in Design view.
- On the View menu, click Code.
- Select HandleButtonClick in the Procedure box of the form's module window.
Locate the line in the HandleButtonClick function that reads:
Change the line to read:
- Save the form and close it.
Steps to Reproduce Behavior
Create a database in Microsoft Access 7.0 as follows:
- Start Microsoft Access 7.0.
- When the Microsoft Access dialog box appears as the program starts, click Database Wizard in the "Create a New Database Using" box. If Microsoft Access 7.0 is already open, click New Database on the File menu.
- In the New dialog box, click the Databases tab, and then click Book Collection.mdz. Click OK.
- In the File New Database dialog box, type Book70.mdb in the File name box, and then click Create.
- When the Database Wizard starts, click Finish.
- After the database is created, quit Microsoft Access 7.0.
Convert the database in Microsoft Access 97 as follows:
- Start Microsoft Access 97 and open the Book70.mdb database.
- In the Convert/Open Database dialog box, click Convert Database, and then click OK.
- In the Convert Database Into dialog box, type Book97.mdb in the File name box, and then click Save.
- When the Main Switchboard form opens, click the Change Switchboard Items button. Note that you receive the error "Command not available."
For more information about switchboard forms, search the Help Index for "switchboard forms," or ask the Microsoft Access 97 Office Assistant.
Additional query words: menu template customize
Keywords: kberrmsg kbprb KB160124