G
Guest
hi
I use this:
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, "MDB40.mdb", acSaveYes
DoCmd.Quit acQuitSaveNone
Else
MsgBox ("Exit Application Action Aborted.")
End If
End Sub
I use this:
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, "MDB40.mdb", acSaveYes
DoCmd.Quit acQuitSaveNone
Else
MsgBox ("Exit Application Action Aborted.")
End If
End Sub