ADT/ODE: Run-time Application Error with Exit Button

ID: Q148523


The information in this article applies to:
  • Microsoft Access Developer's Toolkit, version 7.0
  • Microsoft Office 97 Developer Edition Tools
  • Microsoft Office Developer Edition 97


SYMPTOMS

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

When you add a switchboard item to close a run-time application installed with the Microsoft Office 97 Developer Edition Tools or the Microsoft Access Developer's Toolkit for Windows 95, a user may receive the following error message when the user clicks the button:

Execution of this application has stopped due to a run-time error. The application cannot continue and will be shut down.
Although the desired result is to quit the program, the message box can be very distracting to the user.


RESOLUTION

There are two workarounds to prevent the user from receiving this error message.

Workaround 1

  1. Create the following new macro:


  2. 
    Macro Name  Macro Action
          ------------------------
          QuitMacro   Quit 
  3. Add the following command button to the switchboard form:


  4. 
    Command button:
             Name: Button0
             Caption: Quit Application
             OnClick: QuitMacro 

Workaround 2

  1. Add the following command button to the switchboard form:


  2. 
    Command button:
             Name: Button0
             Caption: Quit Application
             OnClick: [Event Procedure] 
  3. Set the command button's OnClick property to the following event procedure:


  4. 
    DoCmd.Quit 

Additional query words:

Keywords : kberrmsg FmsButb
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: July 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.