A
Ann
Hi,
I'm a beginner and I'm having a problem with my "and" and "or" statements.
I understand why it's not working just not sure of the syntax to make it work
correctly. This statements will identify High, Medium or Low risks by adding
the tag value. Here is what I have:
If SSN.Value = -1 And ysnName.Value = -1 _
And Recipient_of_PHI = "Entity" Or Recipient_of_PHI = "Person" Then
RiskValue = RiskValue + CInt(SSN.Tag) + CInt(ysnName.Tag)
End If
It works fine until I select "Person" then a High risk is selected and it
shouldn't be. I'm trying to get the following:
SSN.Value and ysnName.Value and Entity
or
SSN.Value and ysnName.Value and Person
I seem to be getting:
SSN.Value and ysnName.Value and Entity
or
Person
I hope I've explained it correctly. Thanks in advance.
I'm a beginner and I'm having a problem with my "and" and "or" statements.
I understand why it's not working just not sure of the syntax to make it work
correctly. This statements will identify High, Medium or Low risks by adding
the tag value. Here is what I have:
If SSN.Value = -1 And ysnName.Value = -1 _
And Recipient_of_PHI = "Entity" Or Recipient_of_PHI = "Person" Then
RiskValue = RiskValue + CInt(SSN.Tag) + CInt(ysnName.Tag)
End If
It works fine until I select "Person" then a High risk is selected and it
shouldn't be. I'm trying to get the following:
SSN.Value and ysnName.Value and Entity
or
SSN.Value and ysnName.Value and Person
I seem to be getting:
SSN.Value and ysnName.Value and Entity
or
Person
I hope I've explained it correctly. Thanks in advance.