ACC2002: "Command Not Available" Error on Converted Switchboard Form (294228)
The information in this article applies to:
This article was previously published under Q294228 Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 2000 version of this article, see 208195.
SYMPTOMS
After you convert a database that you created with the Database Wizard in
an Access 97 or 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.
NOTE: In Access 2002, when you convert a database, by default it is converted to an Access 2000 file format. If you have changed the default to convert files directly to Access 2002, you must still follow the steps that are mentioned in this article.
RESOLUTION
To modify the line of code, follow these steps:
- Start Access 2002 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.
REFERENCES
For more information about switchboard forms, click Microsoft Access Help on the Help menu, type "create, customize, and delete a switchboard form" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kberrmsg kbprb KB294228 |
---|
|