Hi. I have a bit of code to look for any records with NULL. What I need is this. Check first if the EOS_Date field contains NULL. If so, show "eos" text and exit the IF statement. Error trapping I'd say is what I'm doing here. Instead, it's doesn't trap the NULL field and send it to the calculation line (after 2nd ELSE).
When I test using a different field in the same table, I get the expected results, so my if structure is ok. So, it's something to with checking for NULLS. Syntax error possibly?
thanks in advance. please help. tx.
_______
<% If TRIM(FP_FieldVal(fp_rs,"Codes")) = "UKRP" _
OR TRIM(FP_FieldVal(fp_rs,"Codes")) = "EEP" _
OR TRIM(FP_FieldVal(fp_rs,"Codes")) = "UK" Then %>
<%Else%>
<% If TRIM(FP_FieldVal(fp_rs,"EOS_Date")) = "" Then %>
<td nowrap><font size="2" face="Arial">no eos date
<%Else%>
<td nowrap><font size="2" face="Arial"><%=FormatCurrency(FP_FieldVal(fp_rs,"Ref_Price")* FP_FieldVal(fp_rs,"EOS-Today") /FP_FieldVal(fp_rs,"EOS-HP_INTRO")) %></font></td>
<%End If %>
<%End If %>
When I test using a different field in the same table, I get the expected results, so my if structure is ok. So, it's something to with checking for NULLS. Syntax error possibly?
thanks in advance. please help. tx.
_______
<% If TRIM(FP_FieldVal(fp_rs,"Codes")) = "UKRP" _
OR TRIM(FP_FieldVal(fp_rs,"Codes")) = "EEP" _
OR TRIM(FP_FieldVal(fp_rs,"Codes")) = "UK" Then %>
<%Else%>
<% If TRIM(FP_FieldVal(fp_rs,"EOS_Date")) = "" Then %>
<td nowrap><font size="2" face="Arial">no eos date
<%Else%>
<td nowrap><font size="2" face="Arial"><%=FormatCurrency(FP_FieldVal(fp_rs,"Ref_Price")* FP_FieldVal(fp_rs,"EOS-Today") /FP_FieldVal(fp_rs,"EOS-HP_INTRO")) %></font></td>
<%End If %>
<%End If %>