KSReynolds
Registered User.
- Local time
- Today, 16:50
- Joined
- Jul 24, 2013
- Messages
- 27
I thought I already posted this, but I don't see it. Is there a more elegant way to write this code? I would rather not use two IF statements.
If (Not IsNull(Me.CLOS_DATE) And DLookup("logonname", "tbllogonname") <> "azura") Then
Me.AllowEdits = False
End If
If (Not IsNull(Me.CLOS_DATE) And DLookup("logonname", "tbllogonname") <> "weglhaut") Then
Me.AllowEdits = False
End If
If (Not IsNull(Me.CLOS_DATE) And DLookup("logonname", "tbllogonname") <> "azura") Then
Me.AllowEdits = False
End If
If (Not IsNull(Me.CLOS_DATE) And DLookup("logonname", "tbllogonname") <> "weglhaut") Then
Me.AllowEdits = False
End If