Code:
<%if (vrptdesc6="Y") then %>
<td colspan="2"> Tag Customer for no reporting * *
<input type="checkbox" name="tagcustomer" id= "tagcustomer" <%if vCustFlag = "Y" then %>checked <%end if%> value = "Y" /> </td>
<% else %>
<input type="hidden" name="tagcustomer" id= "tagcustomer" value = "bypass">
<% End If %>
if vTagCustomer&"" <> "" and vTagCustomer <> "bypass" then
SQLStmt = "exec dbo.CUSTOMERTAGGING "
SQLStmt = SQLStmt & vReqNum & "; "
Set RRU4 = Connection.Execute(SQLStmt)
Set RRU4 = NOTHING
else
SQLStmt = "exec dbo.CUSTOMERUNTAGGING "
SQLStmt = SQLStmt & vReqNum & "; "
Set RRU5 = Connection.Execute(SQLStmt)
Set RRU5 = NOTHING
end if
The &"" takes care of null or empty strings in one shot.
Comments on this post