Can someone please guide me in the right direction with this problem that I am having? I am working on a multiple IF-Then-Else statement but I can’t seem to get it to work properly. Here are three different If-Then-Else statements that I have tried:
Example 1:
If Me.txtEliAge > "18" Then
Me.txtDemEligible = "Yes"
Else
Me.txtDemEligible = "No"
End If
If Me.txtEliLiving <> "3" Then
Me.txtDemEligible = "Yes"
Else
Me.txtDemEligible = "No"
End If
If Me.txtEliERReason <> “2” then
Me.txtDemEligible = “Yes”
Else
Me.txtDemEligible = “No”
End If
Example 2:
If Me.txtEliAge > "18" or Me.txtEliLiving <> "3 or Me.txtEliERReason <> “2” Then
Me.txtDemEligible = "Yes"
Else
Me.txtDemEligible = "No"
End If
Example 3:
If Me.txtEliAge > "18" Then
If Me.txtEliLiving <> "3" Then
If Me.txtEliERReason <> “2” then
Me.txtDemEligible = "Yes"
Else
Me.txtDemEligible = "No"
End If
End If
End If
The 1st and 3rd example seemed to work the best but once I added the third If which is “If me.txtEliERReason <> “2” then”, it doesn’t give me the result I am looking for. What am I doing wrong?