confirm changes (1 Viewer)

msp

Registered User.
Local time
Today, 21:23
Joined
Apr 5, 2004
Messages
155
I have a form currently if someone moves off the form it automatically saves changes what I sould like to do is if someone makes a change on a form the tries to move a message box appears asking them to confirm changes or not...
 

maxmangion

AWF VIP
Local time
Today, 21:23
Joined
Feb 26, 2003
Messages
2,805
you can do that by placing some code in the beforeupdate event, but if you use this form for data inputting, you will get sick of it getting a confirm msg each and every time.

you can do something like the following on the before update event:

Code:
if msgbox ("Confirm Changes", vbyesno, "Warning ...") = vbyes then
DoCmd.RunCommand acCmdSaveRecord
else
Me.Undo
End If
 

msp

Registered User.
Local time
Today, 21:23
Joined
Apr 5, 2004
Messages
155
Thanks Rich et al - this is perfect
 

Users who are viewing this thread

Top Bottom