T
tcdoriot
How can I setup Access 2003 to prompt me before it saves a record in form
view or any other view
Your help is much appreciated
Tim
view or any other view
Your help is much appreciated
Tim
tcdoriot said:How can I setup Access 2003 to prompt me before it saves a record in form
view or any other view
Your help is much appreciated
Thank you for the reply..yes it sounds stupid..but I built the database forRick Brandt said:First off I would question why on earth you would want to do such a thing. If
you don't want to add or change a record then keep your fingers off the keys.
In a Form you could add code to the BeforeUpdate event...
If MsgBox("Save Changes?",vbYesNo) = vbNo Then
Cancel = True
Me.Undo
End If
Outside a form you cannot do what you are asking.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Hello Rick
tcdoriot said:Thank you for the reply..yes it sounds stupid..but I built the database for
a company and they want an extra step before one of the no brains idiots in
the shop saves a record..
I am very limited on my experience with databases..I basically did the
tutorial and created it.
Can you tell me where to put that code.
Steve Huff said:In a form you would put the code in the "Before Update" and "Before Insert" to
pop up a message box or whatever it is you are wanting to tell the user. If
you want to cancel the insert or update just set the Cancel variable equal to
True in those events.
Rick Brandt said:You wouldn't want this in BeforeInsert That fires at the first keystroke of a
new record, not when it is about to be saved.