I made a couple of mistakes, sorry.
First, I left out a line in the before update if the user answers no.
Should be:
If Msgbox("Data Has Changed - Do You Want to Update this Record", _
vbQuestion + vbYesNo) = vbNo Then
MsgBox "Record Not Updated"
Cancel = True
Me.Undo
End If
The Undo will allow you to move to another record.
The other code should be in the After Update.
Private Sub Form_AfterUpdate()
On Error GoTo NoUpdateError
MsgBox "Record Updated"
Exit Sub
NotUpdateError:
MsgBox Err.Number & " " & Err.Description
End Sub

Signature
Dave Hargis, Microsoft Access MVP
> I have inserted code stated in update event but receive this statment when
> entering "NO" in text box. First I receive "Record Not Updated" then another
[quoted text clipped - 50 lines]
> > > happen with an exiting statment of "Update has been saved" or "update has not
> > > been saved"
Nick - 16 May 2007 16:00 GMT
Thanks, I am allowed to move to the next record when I answer "NO" but I
still receive the message box "you can't go to the Specified record" and when
entereing the code in the Private Sub Form_AfterUpdate() when I answer "Yes"
it goes to the compiler highliting the "On error got noupdateerror" with a
message box stating "Label no defined"
> I made a couple of mistakes, sorry.
> First, I left out a line in the before update if the user answers no.
[quoted text clipped - 76 lines]
> > > > happen with an exiting statment of "Update has been saved" or "update has not
> > > > been saved"
Klatuu - 16 May 2007 16:40 GMT
The label is defined in the code I posted, but again, I have a syntax error.
My brain was only at about 40% power yesterday, sorry
Private Sub Form_AfterUpdate()
On Error GoTo NotUpdateError <-reference to label
MsgBox "Record Updated"
Exit Sub
NotUpdateError: <- label (must have colon)

Signature
Dave Hargis, Microsoft Access MVP
> Thanks, I am allowed to move to the next record when I answer "NO" but I
> still receive the message box "you can't go to the Specified record" and when
[quoted text clipped - 82 lines]
> > > > > happen with an exiting statment of "Update has been saved" or "update has not
> > > > > been saved"
Nick - 17 May 2007 07:34 GMT
Thanks! That did the trick.
> The label is defined in the code I posted, but again, I have a syntax error.
> My brain was only at about 40% power yesterday, sorry
[quoted text clipped - 93 lines]
> > > > > > happen with an exiting statment of "Update has been saved" or "update has not
> > > > > > been saved"
Klatuu - 17 May 2007 13:25 GMT
Glad you got it working.
Again, my apologies for the syntax errors.

Signature
Dave Hargis, Microsoft Access MVP
> Thanks! That did the trick.
>
[quoted text clipped - 95 lines]
> > > > > > > happen with an exiting statment of "Update has been saved" or "update has not
> > > > > > > been saved"