Save record in code on click of a button

J

John

What I want to be able to do is automatically save a record even if the user
is on that record editing it when they click on a button. Is there a way to
do that in code behind the click function of the button?

Thanks in advance
 
A

Allen Browne

Try:
RunCommand acCmdSaveRecord

Alternative approach:
If Me.Dirty Then Me.Dirty = False

Of course, it won't save if there is something wrong with the record (e.g. a
Required field is missing.)
 
Top