Hello, I have done a fair bit of research on the forum in regards to locking specific records. I have tried the
If checkbox = true then
me.allowedits = false
Else
me.allowedits = true
End If.
I have also tried
Me.AllowEdits = Switch(Me.Lockrecord, False, True, True)
The problems I am running into are:
1. When I open the form and the checkbox is checked, the records are unlocked until I uncheck and recheck the checkbox and hit refresh. They are not locked when I first open the form. I put this code in the 'AfterUpdate' event of the checkbox and the
2. When one of the records has the checkbox checked, all of the records are locked, not just the one that has the checkbox checked. I have made a button to unlock the records, but that unlocks all of them. The challenge I see is that I have multiple users so I don't want one user to unlock all the records and the other users have access to them.
I am using Access 2010. The form name is 'Order Form' and the checkbox name is Lockrecord. If you can please help me with this or point me in some direction, I would greatly appreciate it.
I have just starting using this forum for about a month and am very excited about the help that one can glean from here.
Thank you, AceBK
If checkbox = true then
me.allowedits = false
Else
me.allowedits = true
End If.
I have also tried
Me.AllowEdits = Switch(Me.Lockrecord, False, True, True)
The problems I am running into are:
1. When I open the form and the checkbox is checked, the records are unlocked until I uncheck and recheck the checkbox and hit refresh. They are not locked when I first open the form. I put this code in the 'AfterUpdate' event of the checkbox and the
2. When one of the records has the checkbox checked, all of the records are locked, not just the one that has the checkbox checked. I have made a button to unlock the records, but that unlocks all of them. The challenge I see is that I have multiple users so I don't want one user to unlock all the records and the other users have access to them.
I am using Access 2010. The form name is 'Order Form' and the checkbox name is Lockrecord. If you can please help me with this or point me in some direction, I would greatly appreciate it.
I have just starting using this forum for about a month and am very excited about the help that one can glean from here.
Thank you, AceBK