Microsoft KB Archive/160124: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 12: Line 12:
<div id="TitleRow">
<div id="TitleRow">


= <span id="KB160124"></span>ACC97: &quot;Command Not Available&quot; Error on Converted Switchboard Form =
= <span id="KB160124"></span>ACC97: "Command Not Available" Error on Converted Switchboard Form =




Line 78: Line 78:
<li><p>Locate the line in the HandleButtonClick function that reads:<br />
<li><p>Locate the line in the HandleButtonClick function that reads:<br />
</p>
</p>
<pre class="fixed_text">      Application.Run &quot;WZMAIN70.sbm_Entry&quot;
<pre class="fixed_text">      Application.Run "WZMAIN70.sbm_Entry"
                         </pre></li>
                         </pre></li>
<li><p>Change the line to read:<br />
<li><p>Change the line to read:<br />
</p>
</p>
<pre class="fixed_text">      Application.Run &quot;WZMAIN80.sbm_Entry&quot;
<pre class="fixed_text">      Application.Run "WZMAIN80.sbm_Entry"
                         </pre></li>
                         </pre></li>
<li>Save the form and close it.</li></ol>
<li>Save the form and close it.</li></ol>
Line 97: Line 97:


# Start Microsoft Access 7.0.
# Start Microsoft Access 7.0.
# When the Microsoft Access dialog box appears as the program starts, click Database Wizard in the &quot;Create a New Database Using&quot; box. If Microsoft Access 7.0 is already open, click New Database on the File menu.
# 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 New dialog box, click the Databases tab, and then click Book Collection.mdz. Click OK.
# In the File New Database dialog box, type <span class="kbd userinput"> Book70.mdb</span> in the File name box, and then click Create.
# In the File New Database dialog box, type <span class="kbd userinput"> Book70.mdb</span> in the File name box, and then click Create.
Line 108: Line 108:
# In the Convert/Open Database dialog box, click Convert Database, and then click OK.
# In the Convert/Open Database dialog box, click Convert Database, and then click OK.
# In the Convert Database Into dialog box, type <span class="kbd userinput"> Book97.mdb</span> in the File name box, and then click Save.
# In the Convert Database Into dialog box, type <span class="kbd userinput"> Book97.mdb</span> 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 &quot;Command not available.&quot;
# When the Main Switchboard form opens, click the Change Switchboard Items button. Note that you receive the error "Command not available."




Line 116: Line 116:
== REFERENCES ==
== REFERENCES ==


For more information about switchboard forms, search the Help Index for &quot;switchboard forms,&quot; or ask the Microsoft Access 97 Office Assistant.
For more information about switchboard forms, search the Help Index for "switchboard forms," or ask the Microsoft Access 97 Office Assistant.


</div>
</div>

Latest revision as of 10:15, 21 July 2020

Article ID: 160124

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Access 97 Standard Edition



This article was previously published under Q160124

Moderate: Requires basic macro, coding, and interoperability skills.

SYMPTOMS

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:

Command Not Available

CAUSE

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.

RESOLUTION

To modify the line of code, follow these steps:

  1. Start Microsoft Access 97 and open the converted database.
  2. Open the Main Switchboard form in Design view.
  3. On the View menu, click Code.
  4. Select HandleButtonClick in the Procedure box of the form's module window.
  5. Locate the line in the HandleButtonClick function that reads:

          Application.Run "WZMAIN70.sbm_Entry"
                            
  6. Change the line to read:

          Application.Run "WZMAIN80.sbm_Entry"
                            
  7. Save the form and close it.


MORE INFORMATION

Steps to Reproduce Behavior

Create a database in Microsoft Access 7.0 as follows:

  1. Start Microsoft Access 7.0.
  2. 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.
  3. In the New dialog box, click the Databases tab, and then click Book Collection.mdz. Click OK.
  4. In the File New Database dialog box, type Book70.mdb in the File name box, and then click Create.
  5. When the Database Wizard starts, click Finish.
  6. After the database is created, quit Microsoft Access 7.0.

Convert the database in Microsoft Access 97 as follows:

  1. Start Microsoft Access 97 and open the Book70.mdb database.
  2. In the Convert/Open Database dialog box, click Convert Database, and then click OK.
  3. In the Convert Database Into dialog box, type Book97.mdb in the File name box, and then click Save.
  4. 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, 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