I want to add another user name to the following code, but I am not sure how. For example, I want to add "joesmith22" so that either joe or mwilson can edit the field. Can someone help with the syntax? Thanks.
Code:
Private Sub txtDate_Received_GotFocus()
If Environ("UserName") = "mwilso1" Then
Me.txtDate_Received.Locked = False
Else
If Len(Nz(Me.txtDate_Received)) = 0 Then
Me.txtDate_Received.Locked = False
Else
Me.txtDate_Received.Locked = True
End If
End If
End Sub