I have a field that I am running a If statement against. Their are three way that the field state my be entered in and they are Data, Null, <Blank>. Of course I don't have any problem if their is data in the field or if it is null (I use a ifnull) but if the field is blank it return an error. I am using the following code to return the value.
The CoCS is the field that is causing me the headaches. I am a system admin by trade so this is a new area for me and any help would be great. Thank
Code:
Function FrontPay (CS AS integer, CoCS AS integer)
If len(CoCS) < 1
If CS > 599 and CS < 990
Return "Good"
Else
Return "Low"
End If
Else If (CS > 599 or CoCS > 599) and (CS < 990 or CoCS < 990)
Return "Good"
Else
Return "Low"
END If
End Function
The CoCS is the field that is causing me the headaches. I am a system admin by trade so this is a new area for me and any help would be great. Thank