ACC2000: "Command Not Available" Error on Converted Switchboard Form
ID: Q208195
|
The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
After you convert a database that you created with the Database Wizard in
an earlier version of Microsoft Access, you may receive the following error message when you click the Change Switchboard Items button on the Main Switchboard form:
Command Not Available
CAUSE
There is a line of code in the Main Switchboard form's class module that
references an earlier version of an Access wizard. This line of code must be modified for Access 2000.
RESOLUTION
To modify the line of code, follow these steps:
- Start Access 2000 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:
Application.Run "WZMAIN80.sbm_Entry"
If you converted from Access 95, the original line reads:
Application.Run "WZMAIN70.sbm_Entry"
- Change the line to read:
Application.Run "ACWZMAIN.sbm_Entry"
- Save the form and close it.
MORE INFORMATION
Steps to Reproduce Behavior
Create a database in Microsoft Access 97 as follows:
- Start Microsoft Access 97.
- 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 97 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 Book97.mdb in the File name box, and then click Create.
- When the Database Wizard starts, click Finish.
- After the database is created, quit Access 97.
Convert the database in Microsoft Access 2000 as follows:
- Start Access 2000 and open the Book97.mdb database.
- In the Convert/Open Database dialog box, click Convert Database, and then click OK.
- In the Convert Database Into dialog box, type Book2000.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."
REFERENCES
For more information about switchboard forms, click
Microsoft Access Help on the Help menu, type
"switchboard forms" in the Office Assistant or the Answer
Wizard, and then click Search to view the topic.
Additional query words:
menu template customize prb
Keywords : kberrmsg kbdta CnvOthr
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999