• Reading a form’s underlying record’s lock status

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Reading a form’s underlying record’s lock status

    Author
    Topic
    #481414

    When I create a delivery docket, there is code in the print button that ticks boxes in the relevant job record in the job table, but if the job is being viewed a different way already, then the record is locked and the boxes are not ticked. What I would like is a bit of code that would check the lock status of the underlying record so I can abort the print process with a message saying that someone else has the record open.

    I can write the rest once I know what I need to check for and how.

    Thanks in advance. :):)

    Viewing 0 reply threads
    Author
    Replies
    • #1318023

      There is some code for a function that does that job in this post. The idea is to open a recordset and try to edit it. If there is an error, then the record is locked.

    Viewing 0 reply threads
    Reply To: Reading a form’s underlying record’s lock status

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

    Your information: