Hi
I hope you guys can help me. I have created a simple database to handle requests for premium freight and I have a tick box to show approval status. I have put the following code on a form to have a password, set the checkbox and lock it.
This only seems to work whilst viewing the record in that form. Does anyone know how I can expand this code to go back to the table and fix that check box in the original table so that it cannot be changed again?
Thanks,
Ben
I hope you guys can help me. I have created a simple database to handle requests for premium freight and I have a tick box to show approval status. I have put the following code on a form to have a password, set the checkbox and lock it.
Code:
Private Sub Command48_Click()
If InputBox("Enter Password", "Approved") = "approve" Then
Me.Approved = True
Me.Approved.Locked = True
Else
MsgBox ("Incorrect Password")
Me.Approved = False
End If
End Sub
This only seems to work whilst viewing the record in that form. Does anyone know how I can expand this code to go back to the table and fix that check box in the original table so that it cannot be changed again?
Thanks,
Ben