Record Locking Message Box (1 Viewer)

_kstone

New member
Local time
Today, 01:53
Joined
Nov 27, 2012
Messages
1
Morning all,

Been struggling with a database ive made for a few days now.

The database is designed for multiple network users to use at once.

Im using Access' record locking feature, it's set to 'Edited Records' so it locks the record on edit.

I want it to pop up with a message box if the record they are viewing is locked.

I have this code:

Code:
Private Sub Option_1_Comment_Click()
If XXXXXX = XX Then
            MsgBox "This Student is currently being edited by another user. Please try again later"
        Else
            XXXXXXXXXX
        End If
End Sub

Need to replace the XXXXX's with something that will detect if the record is locked or not!?

Help!

Thanks
 

llkhoutx

Registered User.
Local time
Today, 03:53
Joined
Feb 26, 2001
Messages
4,018
Checkout transfer, commit and rollback functions.

Read up on record locking properties.
 

Users who are viewing this thread

Top Bottom