Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exit confirmation message

Status
Not open for further replies.

cybermal

Technical User
Mar 14, 2004
17
0
0
GB
I have a 2 buttons on my form, 1 to go back to the main menu and 1 to exit from the application. Is it possible that when either of these buttons are pressed a message appears asking if all records have been saved.
 
If you close the form or exit the db the records will be saved

but if you want to ask the code below should do on your button

dim reply as string
reply = MsgBox("Have you saved the record ?", 36, "Exit System")

'if reply was YES
If reply = 6 Then
DoCmd.Quit
end if

Hope this helps
Hymn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top