randolphoralph
Registered User.
- Local time
- Today, 03:08
- Joined
- Aug 4, 2008
- Messages
- 101
I am having some issues trying to use both and & or in a If statement.
The code below is what I am trying to do and it is not working.
I tried the code below and it works but as soon as a I enter the Or part it will not work.
I am not sure where I am going wrong.
The code below is what I am trying to do and it is not working.
Code:
ElseIf (Len(Nz(Me.Associate_name, "")) = 0 And Me.Status <> "Expired") Or (Len(Nz(Me.Associate_name, "")) = 0 And Me.Status <> "No longer eligible") Then
MsgBox "Please enter Associate Name"
Me.Date_authorization_expires.SetFocus
I tried the code below and it works but as soon as a I enter the Or part it will not work.
Code:
ElseIf (Len(Nz(Me.Associate_name, "")) = 0 And Me.Status <> "Expired") Then
MsgBox "Please enter Associate Name"
Me.Date_authorization_expires.SetFocus
I am not sure where I am going wrong.