Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Dec 2000
    Location
    Massachusetts, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Save Record (Access 2000)

    I am entering data into fields on a form and need to do a save of the record before I finish entering all field data.
    On a certian field I want to do the save of the record based on the field's "On Lost Focus" property.
    Could someone suggest the coding to do this.

    Thanks.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Save Record (Access 2000)

    If you really want to do that, you can use code like this:

    Private Sub ControlName_LostFocus()
    If Me.Dirty Then
    RunCommand acCmdSaveRecord
    End If
    End Sub

    where ControlName is the name of the control (field).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •