M
middletree
Using Classic ASP 3/VBScript
My query looks like:
strSQL = "SELECT Personal.FName, Personal.LName "
strSQL = strSQL & "FROM GroupInfo INNER JOIN "
strSQL = strSQL & "Personal ON GroupInfo.PersonalID = Personal.PersonalID "
strSQL = strSQL & "WHERE GroupID = "&strHHGroupID&" "
In a couple of rare cases, the result set will be empty. I am trying to
handle this before I start my next query, but when I try:
if Len(rsGroup("FName")) < 1 or IsNull(rsGroup("FName")) or
rsGroup("FName") = "0" then
It doesn't catch it, for some reason. What's the preferred way of doing
this? Should I use "If Rowcount < 1 then" ?
My query looks like:
strSQL = "SELECT Personal.FName, Personal.LName "
strSQL = strSQL & "FROM GroupInfo INNER JOIN "
strSQL = strSQL & "Personal ON GroupInfo.PersonalID = Personal.PersonalID "
strSQL = strSQL & "WHERE GroupID = "&strHHGroupID&" "
In a couple of rare cases, the result set will be empty. I am trying to
handle this before I start my next query, but when I try:
if Len(rsGroup("FName")) < 1 or IsNull(rsGroup("FName")) or
rsGroup("FName") = "0" then
It doesn't catch it, for some reason. What's the preferred way of doing
this? Should I use "If Rowcount < 1 then" ?