Shilohcity
Technical User
Hi there
I have a SQL database which allows <null> values for all fields. Now when I call the information from this database it is going into an html table and I dont want a blank cell which looks a little ugly in html. Now I figured it would be straight forward enough to go:
<% if objRS.("such&suchafield" = "" Then
Response.Write "& n b s p ;" '(without the spaces they are just for show)
Else
Response.Write objRS.("such&suchafield"
End If
%>
Little did I suspect that this would not work. Now I am confused. Is SQL passing a value to the asp code thus preventing the objRS.("such&suchafield" from equalling 0? or is there something else going on I have missed?
I hope somebody can help with the mystery of the empty spaces?
Justin. X-)
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at
I have a SQL database which allows <null> values for all fields. Now when I call the information from this database it is going into an html table and I dont want a blank cell which looks a little ugly in html. Now I figured it would be straight forward enough to go:
<% if objRS.("such&suchafield" = "" Then
Response.Write "& n b s p ;" '(without the spaces they are just for show)
Else
Response.Write objRS.("such&suchafield"
End If
%>
Little did I suspect that this would not work. Now I am confused. Is SQL passing a value to the asp code thus preventing the objRS.("such&suchafield" from equalling 0? or is there something else going on I have missed?
I hope somebody can help with the mystery of the empty spaces?
Justin. X-)
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at