Thank you Jon: This is what I did.
Private Sub Save_Record_Click()
On Error GoTo Err_Save_Record_Click
Dim iAns As Integer
iAns = MsgBox("Is this information correct and ready to be saved?", vbYesNo)
If iAns = vbNo Then
Trueline: Me.Undo
Cancel = True
End If
Now I am getting an error. The "Cancel =" is highlighted in blue.
The error says - "Compile Error. Can't find project or library."
What do I do now?
Aurora
End Sub
> >Good Morning - first of all THANK YOU very much for your answer to my
> >"Stopping an automatic save" question on 1/30/07. (I am making changes to a
[quoted text clipped - 17 lines]
>
> John W. Vinson[MVP]
Douglas J. Steele - 31 Jan 2007 19:07 GMT
Remove the line
Cancel = True
from your code.
If your code were in a BeforeUpdate event, it would be required. However,
there is no Cancel argument in Click events.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Thank you Jon: This is what I did.
>
[quoted text clipped - 42 lines]
>>
>> John W. Vinson[MVP]
John Vinson - 31 Jan 2007 22:58 GMT
>Now I am getting an error. The "Cancel =" is highlighted in blue.
>The error says - "Compile Error. Can't find project or library."
>What do I do now?
Put the code in the Form's BeforeUpdate event (which does have a
Cancel argument) rather than in the button's Click event (which
doesn't).
The BeforeUpdate event will fire no matter HOW the user chooses to
save the record - whether from the button, or closing the form, using
the Records menu option, whatever.
Juat a note: having this kind of verification ("do you really want to
save?") gets annoying to users over a rather short time, and ceases to
be effective; users will just blindly click Yes... and THEN realize
"oops I didn't want to do that". Good luck.
John W. Vinson[MVP]