save or unsave changes in reord

R

rudwan

who do i code select save or unsave record changes while
user typing ?
what will be the code , and which event on the form (
after update event will apply also when new record
inserted )
 
W

Wayne Morgan

In the BeforeUpdate event of the form, ask the user if they want to save
changes. Set

Cancel = True

if they don't want to save the changes. Next, if they also want to undo the
changes

Me.Undo
 
R

rudwan

thanks very much
i tried it , it working well , but it applied also after
insert new record , who i can adjust the code to be
applied only when changes saved record not new ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top