• Determine if a record is locked

    Author
    Topic
    #466325

    There is probably an easy way to do this. Does anyone know how to determine if a record is locked in Access 2003 using VBA?

    Viewing 1 reply thread
    Author
    Replies
    • #1207723

      I have not tried to do this, but looking around I found this

      It assumes you are dealing with a form. The code tries to edit the record in the form’s recordset. If the record is locked that will generate an error.
      So if the error occurs the record is locked. If the error does not.
      The code in the link goes on to tell you who has it locked, but you could ignore that bit.

    • #1207766

      Thanks John.
      That solution seems just the thing. I’ll give it a go.
      Thanks again.

    Viewing 1 reply thread
    Reply To: Determine if a record is locked

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: