Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking against a blank ado recordset

Status
Not open for further replies.

gio2888

Technical User
Oct 26, 2000
64
US
I guess this questions good in between with vbscript/asp and sql coding. I am trying to check for blank or null on a recordset... the select statment returned blank when I ran it against sql analyzer. Yet when I check it in my asp code, I tried
check = isNULL(rs1("title")) //check return neither true or false

I tried if rs1("title") = "" //that did not work either

Please Help, thanks! (I will post this in sql forum as well)
 
If Len(Trim(rs1("title"))) > 0 then ' theres something in?

else
its empty
end if
 
retunred a null value or no records?

no records use EOF
If RS.EOF Then
do something
End If

empty column (record)
If IsNull(rs1("title")) Then
do something
End If

I know you tried the second but that leads me to believe your not getting records instead of empty ones.

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top