If you are using the new A2007 format then I don't believe the
built-in Switchboard has any VBA code, it uses only the new Macro
system.
If so then try this :-
Open the Switchboard form in Design mode.
Right click the button (called Option1) and display the Properties.
On the On Click property (shows as Embedded Macro) click the ...
button to display the Macro editor.
In the Condition column for the line that shows [Command =6] change
the entry in the Action column from CloseDatabase to Quit using the
drop down box.
Click in the Arguments column and change the entry to Prompt using the
drop down box at the bottom of the form.
Save the Macro and exit.
Save the Switchboard form and exit.
Let us know if it works, it may help other users.
HTH
Peter Hibbs.
Bill,
When I try to type on the code window the one below, then on the Procedure
HandleButtonClick() apeared but doen't seem changed on the switchboard. It is
still won't close the application.
Private Function HandleButtonClick()
' Exit the application.
Case conCmdExitApplication
DoCmd.Quit
End Function