Save record in code on click of a button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.)
 
Back
Top