Hi All,
I am working on ASP VBScript...
How can i check the values of a recordset .i.e whether it contains values or not...??
Is NULL considered as a string....??
Actually i want to check on a precondion that if recodset is empty ...i want to take some action
if not empty then some other action..
please reply...
Code taht i have use is:-
Thanks :-)
I am working on ASP VBScript...
How can i check the values of a recordset .i.e whether it contains values or not...??
Is NULL considered as a string....??
Actually i want to check on a precondion that if recodset is empty ...i want to take some action
if not empty then some other action..
please reply...
Code taht i have use is:-
Code:
SET objDBdbConnection = Server.CreateObject("ADODB.Connection")
objDBdbConnection.Open Session("ConnectionString")
SET rsNew =server.createobject("ADODB.Recordset")
StrSql = "Select IP from rate where docid=1"
rsNew.open StrSql, objDBdbConnection
if rsNew.Fields("IP")="NULL" then
Response.Write("Not Found")
else
Response.Write("Found")
end if
Thanks :-)
Comment