Locked records (1 Viewer)

kitty77

Registered User.
Local time
Yesterday, 19:40
Joined
May 27, 2019
Messages
712
I have a form that all records are locked. On the form, I have a button that unlocks the records. I also have several other buttons (save, refresh) on the form.
I would like when someone clicks the save button and the records are locked "say records are locked"

Thanks...
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:40
Joined
Oct 29, 2018
Messages
21,469
So, in the Click event of the Save button, do something like:

If Records Are Locked Then MsgBox "Records are locked!"

How do you lock the records or how do you check if they are?
 

kitty77

Registered User.
Local time
Yesterday, 19:40
Joined
May 27, 2019
Messages
712
Records are locked on Current and a text is visible if locked and not if unlocked.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:40
Joined
Oct 29, 2018
Messages
21,469
Records are locked on Current and a text is visible if locked and not if unlocked.
Okay, you can either use the same code or check for the visibility of the text. For example:

If TextboxName.Visible Then MsgBox "Record is locked!"

Hope that helps...
 

Users who are viewing this thread

Top Bottom