Code Examples

Save Record

acCmdSaveRecord

This simple piece of code saves the current record. It is designed to run behind a button called cmdSave.

'***************** Code Start *******************
' Code by Terry Wickenden

Private Sub cmdSave_Click()

  On Error GoTo ErrHandler

  DoCmd.RunCommand acCmdSaveRecord
  Exit Sub

ErrHandler:

  MsgBox Err.Number & vbCRLF & Err.Description

End Sub

'****************** Code End ********************

© 1998 - 2011 Terry Wickenden TKW Design Site developed, maintained and hosted by TKW Design. This site is best viewed at 1024 x 768. Optimised for Firefox.