Is there a way to make the database prompt to save when exiting. I am having a problem with people making changes on accident and then exiting and thus it saves automatically.
Would'nt it be easier to lock each record when it is completed and then force users to click on a button which would then allows them to edit the record
Add the following to the On Click event of the exit button
If MsgBox("Would you like to save changes made to this record?",vbyesno,"SAVE CHANGES" = vbYes Then
DoCmd.RunCommand acCmdSaveRecord
Else
MsgBox "Changes have not been saved."
me.undo
End if
DoCmd.Close
"I know what you're t'inkin', ma petite. Dat Gambit... still de suave one, no?"
or you can easily without using code to make a macro attached to the exit button. On the macro, line 1, have "Save"...the critearia at teh bottom allows you to choose "Prompt", "Yes" or "No"
"There are two ways to write error free programs. Only the third one works."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.