yes,
the button as is now probably has something like this
DoCmd.Close acForm, "FormName"
change it to
Private Sub cmdExit_Click()
If MsgBox("This action will close Access. Do you still
wish to continue?", vbYesNo, "Exit Application Warning") =
vbYes Then
DoCmd.Close acForm, "frmMainIntro", acSaveYes
DoCmd.Close acDefault, "db.mdb", acSaveYes
DoCmd.Quit acQuitSaveNone
Else
MsgBox ("Exit Application Action Aborted.")
End If
End Sub
>-----Original Message-----
>When I use the exit on the switchboard it closes the
database but leaves the
>Access application open. Is there anything I can do to
click the exit button
>and have the Access close too and return to the desktop?
>
>thanks!
>.
>
|