K
Ken
I can't seem to get my syntax right on the following
code. In playing with it, I either get the "Else without
If" or "End If without Block If" Errors.
Here is the code producing the errors:
Public Function SurveySelect(PropQltyRtg, AsStabVal) As
Double
If PropQltyRtg = 1 Or PropQltyRtg = 2 _
Then
SurveySelect = "CB Richard Ellis"
Else _
: If AsStabVal > 5000000 And PropQltyRtg >
_
2 Then SurveySelect = "Korpacz"
Else: SurveySelect = "CB Richard Ellis"
End If
End Function
What would be the proper code? I have tried Putting an
End If before the first Else, but that gave me another
error.
Thanks in advance!
Ken
code. In playing with it, I either get the "Else without
If" or "End If without Block If" Errors.
Here is the code producing the errors:
Public Function SurveySelect(PropQltyRtg, AsStabVal) As
Double
If PropQltyRtg = 1 Or PropQltyRtg = 2 _
Then
SurveySelect = "CB Richard Ellis"
Else _
: If AsStabVal > 5000000 And PropQltyRtg >
_
2 Then SurveySelect = "Korpacz"
Else: SurveySelect = "CB Richard Ellis"
End If
End Function
What would be the proper code? I have tried Putting an
End If before the first Else, but that gave me another
error.
Thanks in advance!
Ken