S
Song Su
I already have a function fOSUserName() setup.
On the form open event:
If userid is in the tblUsers AND field L has value R Then
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
Else ' Field L has value E
Me.AllowAdditions = True
Me.AllowEdits = True
Me.AllowDeletions = True
End If
I did the first part (evaluate if userid is in the table) but I don't know
how to add 2nd part (AND L = R)
DLookup("[userid]", "tblUsers", "[userid] = " & Chr(34) &
Left(fOSUserName(), 8) & Chr(34))
On the form open event:
If userid is in the tblUsers AND field L has value R Then
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
Else ' Field L has value E
Me.AllowAdditions = True
Me.AllowEdits = True
Me.AllowDeletions = True
End If
I did the first part (evaluate if userid is in the table) but I don't know
how to add 2nd part (AND L = R)
DLookup("[userid]", "tblUsers", "[userid] = " & Chr(34) &
Left(fOSUserName(), 8) & Chr(34))