Prompt before updating a record

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a simple form in Access 2003. How do I force Access to prompt me
before updating a record?
 
In the form's BeforeUpdate event, put the following code:

If MsgBox("Save the current record?", vbOkCancel, "Confirm Save") = vbCancel
Then
Cancel = True
EndIf

Barry
 
Hi

I have same problem with updating records. I put the code in BEFORE
UPDATE EVENT and the only change is it doesn't update anything, even if
we enter new data in new form.

How do I solve this.

Thanks
MaCh
 
Back
Top