Hi all,
I have a Database with a number of tables, the MAIN form has a sub-form of ITEM/COST, where individual items are entered.
I have implemented an authorisation system, where, once completed, and authorised, the status changes to Authorised, however, this does NOT lock the ITEM/COST, which is what I want.
When i tried to implement this, it locks all the records ITEM/COST form, not the specific record?
This is undesirable, as once Authorised, people can add to the list without need for further authorisation.
Private Sub Command161_Click()
Dim stPassword2 As String
stPassword2 = InputBox("Enter Password")
If stPassword2 = "********" Then
Status.Value = "Approved"
Else
Status.Value = "Incomplete"
End If
End Sub
This is the script that is used for authorisation, I would then like to lock the Form and Item/Cost Form from amendment, unless another password is entered, which i can implement no problem. it's more how do I lock the specific item/cost table for the single record.
I hope this makes sense, if not, let me know.
Thanks in advance
I have a Database with a number of tables, the MAIN form has a sub-form of ITEM/COST, where individual items are entered.
I have implemented an authorisation system, where, once completed, and authorised, the status changes to Authorised, however, this does NOT lock the ITEM/COST, which is what I want.
When i tried to implement this, it locks all the records ITEM/COST form, not the specific record?
This is undesirable, as once Authorised, people can add to the list without need for further authorisation.
Private Sub Command161_Click()
Dim stPassword2 As String
stPassword2 = InputBox("Enter Password")
If stPassword2 = "********" Then
Status.Value = "Approved"
Else
Status.Value = "Incomplete"
End If
End Sub
This is the script that is used for authorisation, I would then like to lock the Form and Item/Cost Form from amendment, unless another password is entered, which i can implement no problem. it's more how do I lock the specific item/cost table for the single record.
I hope this makes sense, if not, let me know.
Thanks in advance